1 DESCRIPTION = "Open Source multimedia player."
4 HOMEPAGE = "http://www.mplayerhq.hu/"
5 DEPENDS = "virtual/libsdl xsp libmad zlib libpng jpeg liba52 freetype fontconfig alsa-lib lzo ncurses lame libxv virtual/libx11"
6 DEPENDS_append_c7x0 = " libw100 "
7 DEPENDS_append_hx4700 = " libw100 "
9 RDEPENDS = "mplayer-common"
11 SRC_URI = "http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2 \
13 file://vo_w100_api.h \
17 file://simple_idct_armv5te.S \
18 file://Makefile-codec-cfg.patch;patch=1 \
19 file://w100-configure-svn.patch;patch=1 \
20 file://w100-video_out.patch;patch=1 \
21 file://w100-mplayer.patch;patch= \
22 file://pld-onlyarm5.patch;patch=1 \
23 file://makefile-nostrip-svn.patch;patch=1 \
24 file://mplayer-imageon-svn.patch;patch=1 \
25 file://imageon-video_out.patch;patch=1 \
26 file://pxa_configure.patch;patch=1 \
27 file://pxa-video_out.patch;patch=1 \
28 file://motion-comp-pld.patch;patch=1 "
30 # This is required for the collie machine only as all stacks in that
31 # machine seem to be set to executable by the toolchain. If someone
32 # discovers this is more general than please make this more general
33 # ie. for all armv4 machines.
34 SRC_URI_append_collie = "file://disable-executable-stack-test.patch;patch=1"
36 PACKAGE_ARCH_collie = "collie"
37 PACKAGE_ARCH_c7x0 = "c7x0"
38 PACKAGE_ARCH_hx4700 = "hx4700"
40 RCONFLICTS_${PN} = "mplayer-atty"
41 RREPLACES_${PN} = "mplayer-atty"
47 S = "${WORKDIR}/MPlayer-1.0rc2"
49 PACKAGES =+ "mencoder"
51 FILES_${PN} = "${bindir}/mplayer ${libdir}"
52 FILES_mencoder = "${bindir}/mencoder"
54 inherit autotools pkgconfig
59 --target=${TARGET_SYS} \
64 --disable-linux-devfs \
69 --disable-xf86keysym \
72 --disable-tv-bsdbt848 \
80 --disable-libdvdcss-internal \
81 --disable-dvdread-internal \
82 --disable-cdparanoia \
90 --disable-macosx-finder-support \
91 --disable-macosx-bundle \
106 --disable-libavutil_so \
107 --disable-libavcodec_so \
108 --disable-libavformat_so \
109 --disable-libpostproc_so \
111 --enable-tremor-low \
169 --disable-win32waveout \
174 EXTRA_OECONF_append_arm = " --disable-decoder=vorbis_decoder \
175 --disable-encoder=vorbis_encoder"
176 EXTRA_OECONF_append_c7x0 = " --enable-imageon "
177 EXTRA_OECONF_append_hx4700 = " --enable-imageon "
179 #build with support for the iwmmxt instruction and pxa270fb overlay support (pxa270 and up)
180 #not every iwmmxt machine has the lcd connected to pxafb, but building the module doesn't hurt
181 MY_ARCH := "${PACKAGE_ARCH}"
182 PACKAGE_ARCH = "${@base_contains('MACHINE_FEATURES', 'iwmmxt', 'iwmmxt', '${MY_ARCH}',d)}"
184 MY_TARGET_CC_ARCH := "${TARGET_CC_ARCH}"
185 TARGET_CC_ARCH = "${@base_contains('MACHINE_FEATURES', 'iwmmxt', '-march=iwmmxt -mtune=iwmmxt', '${MY_TARGET_CC_ARCH}',d)}"
187 EXTRA_OECONF_append = " ${@base_contains('MACHINE_FEATURES', 'iwmmxt', '--enable-pxa --enable-iwmmxt', '',d)} "
188 EXTRA_OECONF_append = " ${@base_contains('MACHINE_FEATURES', 'x86', '--enable-runtime-cpudetection', '',d)} "
191 cp ${WORKDIR}/vo_w100.c ${S}/libvo
192 cp ${WORKDIR}/vo_w100_api.h ${S}/libvo
193 cp ${WORKDIR}/vo_w100_fb.h ${S}/libvo
194 cp ${WORKDIR}/vo_pxa.c ${S}/libvo
195 cp ${WORKDIR}/vo_pxa.h ${S}/libvo
196 cp ${WORKDIR}/simple_idct_armv5te.S ${S}/libavcodec/armv4l/
198 sed -i 's|/usr/include|${STAGING_INCDIR}|g' ${S}/configure
199 sed -i 's|/usr/lib|${STAGING_LIBDIR}|g' ${S}/configure
200 sed -i 's|/usr/\S*include[\w/]*||g' ${S}/configure
201 sed -i 's|/usr/\S*lib[\w/]*||g' ${S}/configure
203 ./configure ${EXTRA_OECONF}