summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Ansell <mithro@mithis.com>2004-09-26 16:36:29 +0000
committerTim Ansell <mithro@mithis.com>2004-09-26 16:36:29 +0000
commitb1e94a2c03e9c421ab89eb6eb08392ae3be225a3 (patch)
treeb9a6128a12f4ccd6ec2342931ead2b26fe84a243
parentbf08c7ffa709f999fef6983d3e36556c0f3c18b8 (diff)
mplayer will now produce a libpostproc which is needed by ffmpeg and vlc
BKrev: 4156f00dTreLFshg-i3a6bDbybWDMg
-rw-r--r--mplayer/mplayer-w100_1.0pre3try2.oe29
-rw-r--r--mplayer/mplayer_1.0pre3try2.oe22
2 files changed, 43 insertions, 8 deletions
diff --git a/mplayer/mplayer-w100_1.0pre3try2.oe b/mplayer/mplayer-w100_1.0pre3try2.oe
index 3ed753209c..c7334f2d35 100644
--- a/mplayer/mplayer-w100_1.0pre3try2.oe
+++ b/mplayer/mplayer-w100_1.0pre3try2.oe
@@ -11,14 +11,19 @@ SRC_URI = "http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-${PV}.tar.bz2 \
file://zlib.patch;patch=0 "
S = "${WORKDIR}/MPlayer-${PV}"
-FILES_${PN} = " \
- /usr/local/bin/mplayer \
- /usr/local/lib/mplayer/vidix/w100_vid.so "
+PACKAGES="${PN} postproc postproc-dev"
+
+FILES_${PN} = "/usr/bin/mplayer /usr/lib/mplayer/vidix/w100_vid.so"
+
+FILES_postproc = " /usr/lib/libpostproc.so.0.0.0 /usr/lib/libpostproc.so.0"
+FILES_postproc-dev = " /usr/include/postprocess.h /usr/lib/libpostproc.so /usr/lib/libpostproc.a"
inherit autotools
EXTRA_OECONF = " \
- --target=arm \
+ --prefix=/usr \
+ --target=${PACKAGE_ARCH} \
+ --enable-shared-pp \
\
--disable-win32 \
--disable-macosx \
@@ -51,9 +56,23 @@ EXTRA_OECONF = " \
# --cc=arm-linux-gcc \
# --disable-dvdnav \
-# CFLAGS += " -ljpeg -lpng -lts "
do_configure() {
./configure ${EXTRA_OECONF}
}
+do_install_append () {
+ mkdir ${D}/usr/lib
+ cp ${S}/libavcodec/libpostproc/libpostproc.so ${D}/usr/lib/libpostproc.so.0.0.0
+ mkdir ${D}/usr/include
+ cp ${S}/libavcodec/libpostproc/postprocess.h ${D}/usr/include/postprocess.h
+ cd ${D}/usr/lib
+ ln -s libpostproc.so.0.0.0 libpostproc.so.0
+ ln -s libpostproc.so.0 libpostproc.so
+}
+
+do_stage () {
+ oe_libinstall -a -so -C libavcodec/libpostproc libpostproc ${STAGING_LIBDIR}
+ install -m 0644 ${S}/libavcodec/libpostproc/postprocess.h ${STAGING_INCDIR}/postprocess.h
+}
+
diff --git a/mplayer/mplayer_1.0pre3try2.oe b/mplayer/mplayer_1.0pre3try2.oe
index 1873bbd8ab..f53e811413 100644
--- a/mplayer/mplayer_1.0pre3try2.oe
+++ b/mplayer/mplayer_1.0pre3try2.oe
@@ -11,16 +11,17 @@ S = "${WORKDIR}/MPlayer-${PV}"
PACKAGES="${PN} postproc postproc-dev"
-FILES_${PN} = " \
- /usr/local/bin/mplayer "
+FILES_${PN} = "/usr/bin/mplayer"
-FILES_postproc = ""
+FILES_postproc = " /usr/lib/libpostproc.so.0.0.0 /usr/lib/libpostproc.so.0"
+FILES_postproc-dev = " /usr/include/postprocess.h /usr/lib/libpostproc.so /usr/lib/libpostproc.a"
inherit autotools
EXTRA_OECONF = " \
--prefix=/usr \
--target=${PACKAGE_ARCH} \
+ --enable-shared-pp \
\
--disable-win32 \
--disable-macosx \
@@ -57,3 +58,18 @@ do_configure() {
./configure ${EXTRA_OECONF}
}
+do_install_append () {
+ mkdir ${D}/usr/lib
+ cp ${S}/libavcodec/libpostproc/libpostproc.so ${D}/usr/lib/libpostproc.so.0.0.0
+ mkdir ${D}/usr/include
+ cp ${S}/libavcodec/libpostproc/postprocess.h ${D}/usr/include/postprocess.h
+ cd ${D}/usr/lib
+ ln -s libpostproc.so.0.0.0 libpostproc.so.0
+ ln -s libpostproc.so.0 libpostproc.so
+}
+
+do_stage () {
+ oe_libinstall -a -so -C libavcodec/libpostproc libpostproc ${STAGING_LIBDIR}
+ install -m 0644 ${S}/libavcodec/libpostproc/postprocess.h ${STAGING_INCDIR}/postprocess.h
+}
+