summaryrefslogtreecommitdiff
path: root/packages/mplayer/mplayer-atty_1.0.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/mplayer/mplayer-atty_1.0.1.bb')
-rw-r--r--packages/mplayer/mplayer-atty_1.0.1.bb27
1 files changed, 26 insertions, 1 deletions
diff --git a/packages/mplayer/mplayer-atty_1.0.1.bb b/packages/mplayer/mplayer-atty_1.0.1.bb
index 6d5796aa9e..baa1f89d11 100644
--- a/packages/mplayer/mplayer-atty_1.0.1.bb
+++ b/packages/mplayer/mplayer-atty_1.0.1.bb
@@ -15,7 +15,7 @@ SRC_URI = "http://www.xora.org.uk/oe/mplayer-${PV}.tar.gz \
RCONFLICTS="mplayer"
MAINTAINER="Graeme Gregory <dp@xora.org.uk>"
-PR = "r3"
+PR = "r4"
PARALLEL_MAKE = ""
@@ -26,8 +26,13 @@ PACKAGE_ARCH_spitze = "${MACHINE_ARCH}"
S = "${WORKDIR}/mplayer-${PV}"
+PACKAGES =+ "postproc postproc-dev"
+
FILES_${PN} = "${bindir}/mplayer"
+FILES_postproc = " ${libdir}/libpostproc.so.0.0.0 ${libdir}/libpostproc.so.0"
+FILES_postproc-dev = " ${includedir}/postproc/postprocess.h ${libdir}/libpostproc.so ${libdir}/libpostproc.a"
+
inherit autotools
EXTRA_OECONF = " \
@@ -71,3 +76,23 @@ do_configure() {
./configure ${EXTRA_OECONF}
}
+do_install_append () {
+ install -d ${D}${libdir} ${D}${includedir} ${D}${includedir}/postproc
+ install -m 0644 libavcodec/libpostproc/postprocess.h ${D}${includedir}/postproc/
+ oe_libinstall -so -C ${S}/libavcodec/libpostproc libpostproc ${D}${libdir}
+ cp ${S}/libavcodec/libpostproc/libpostproc.so ${D}${libdir}/libpostproc.so.0.0.0
+ cd ${D}${libdir}
+ ln -sf libpostproc.so.0.0.0 libpostproc.so.0
+ ln -sf libpostproc.so.0 libpostproc.so
+}
+
+do_stage () {
+ oe_libinstall -a -so -C libavcodec/libpostproc libpostproc ${STAGING_LIBDIR}
+ cd ${STAGING_LIBDIR}
+ ln -sf libpostproc.so libpostproc.so.0.0.0
+ ln -sf libpostproc.so libpostproc.so.0
+
+ install -d ${STAGING_INCDIR}/postproc
+ install -m 0644 ${S}/libavcodec/libpostproc/postprocess.h ${STAGING_INCDIR}/postproc/postprocess.h
+}
+