]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/mplayer/mplayer_1.0pre7.bb
mplayer: force use of libmad
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / mplayer / mplayer_1.0pre7.bb
1 DESCRIPTION = "Open Source multimedia player."
2 SECTION = "opie/multimedia"
3 PRIORITY = "optional"
4 HOMEPAGE = "http://www.mplayerhq.hu/"
5 DEPENDS = "virtual/libsdl libmad libogg libvorbis zlib libpng jpeg"
6 LICENSE = "GPL"
7 SRC_URI = "http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-${PV}.tar.bz2 \
8            file://Makefile.patch;patch=1 \
9            file://sdl.patch;patch=0 \
10            file://zlib.patch;patch=0 \
11            file://libmpdemux-ogg-include.patch;patch=1 \
12            file://libmpcodecs-ogg-include.patch;patch=1 \
13            file://go-mad.patch;patch=1 "
14 MAINTAINER="Graeme Gregory <dp@xora.org.uk>"
15 RCONFLICTS_${PN} = "mplayer-atty"
16 PR = "r3"
17
18 PARALLEL_MAKE = ""
19
20 DEPENDS_append_c7x0 = " sharp-aticore-oss"
21 PACKAGE_ARCH_c7x0 = "${MACHINE_ARCH}"
22 SRC_URI_append_c7x0 = "file://mplayer-w100_1.0pre3.1.modified.diff;patch=1 \
23                        file://Makefile-vidix.patch;patch=0 \
24                        file://vidix-drivers-w100.patch;patch=1 "
25
26 S = "${WORKDIR}/MPlayer-${PV}"
27
28 PACKAGES =+ "postproc postproc-dev"
29
30 FILES_${PN} = "${bindir}/mplayer ${libdir}/mplayer/vidix/w100_vid.so"
31
32 FILES_postproc = " ${libdir}/libpostproc.so.0.0.0 ${libdir}/libpostproc.so.0"
33 FILES_postproc-dev = " ${includedir}/postproc/postprocess.h ${libdir}/libpostproc.so ${libdir}/libpostproc.a"
34
35 inherit autotools 
36
37 EXTRA_OECONF = " \
38         --prefix=/usr \
39                 --mandir=${mandir} \
40         --target=${TARGET_SYS} \
41         --enable-shared-pp \
42         \
43         --disable-win32 \
44         --disable-macosx \
45         --disable-dvdread \
46         --disable-mpdvdkit \
47         --disable-tv \
48         --disable-tv-v4l \
49         --disable-tv-v4l2 \
50         --disable-tv-bsdbt848 \
51         --disable-mencoder \
52         --disable-live \
53         --disable-smb \
54         \
55         --enable-dynamic-plugins \
56         --enable-fbdev \
57         --enable-sdl \
58         --with-sdl-config=${STAGING_BINDIR}/sdl-config \
59         \
60         --disable-mp3lib \
61         --enable-mad \
62         --enable-tremor-low \
63         \
64         --enable-ossaudio \
65         \
66         --enable-rtc \
67         \
68         --with-extralibdir=${STAGING_LIBDIR} "
69
70 EXTRA_OECONF_append_c7x0 = " --enable-vidix "
71
72 do_configure() {
73         ./configure ${EXTRA_OECONF}
74 }
75
76 do_install_append () {
77         install -d ${D}${libdir} ${D}${includedir} ${D}${includedir}/postproc
78         install -m 0644 libavcodec/libpostproc/postprocess.h ${D}${includedir}/postproc/
79         oe_libinstall -so -C ${S}/libavcodec/libpostproc libpostproc ${D}${libdir}
80         cp ${S}/libavcodec/libpostproc/libpostproc.so ${D}${libdir}/libpostproc.so.0.0.0
81         cd ${D}${libdir}
82         ln -sf libpostproc.so.0.0.0 libpostproc.so.0
83         ln -sf libpostproc.so.0 libpostproc.so
84 }
85
86 do_stage () {
87         oe_libinstall -a -so -C libavcodec/libpostproc libpostproc ${STAGING_LIBDIR}
88         cd ${STAGING_LIBDIR}
89         ln -sf libpostproc.so libpostproc.so.0.0.0
90         ln -sf libpostproc.so libpostproc.so.0
91
92         install -d ${STAGING_INCDIR}/postproc
93         install -m 0644 ${S}/libavcodec/libpostproc/postprocess.h ${STAGING_INCDIR}/postproc/postprocess.h
94 }                                       
95