1 DESCRIPTION = "Open Source multimedia player."
4 HOMEPAGE = "http://www.mplayerhq.hu/"
5 DEPENDS = "virtual/libsdl libmad zlib libpng jpeg liba52 freetype fontconfig alsa-lib lzo ncurses lame libxv virtual/libx11"
6 RDEPENDS = "mplayer-common"
8 SRC_URI = "http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2 \
10 file://vo_w100_api.h \
14 file://Makefile.patch;patch=1 \
15 file://w100-configure.patch;patch=1 \
16 file://w100-Makefile.patch;patch=1 \
17 file://w100-video_out.patch;patch=1 \
18 file://w100-mplayer.patch;patch=1 \
19 file://pld-onlyarm5.patch;patch=1 \
20 file://makefile-nostrip.patch;patch=1 \
21 ${SOURCEFORGE_MIRROR}/libw100/mplayer-imageon.patch;patch=1 \
22 file://imageon-video_out.patch;patch=1 \
23 file://powerpc-is-ppc.diff;patch=1 \
24 file://pxa_configure.patch;patch=1 \
25 file://pxa-video_out.patch;patch=1 \
28 SRC_URI_append_avr32 = " file://mplayer-1.0rc1-atmel.2.patch;patch=1 \
31 # This is required for the collie machine only as all stacks in that
32 # machine seem to be set to executable by the toolchain. If someone
33 # discovers this is more general than please make this more general
34 # ie. for all armv4 machines.
35 SRC_URI_append_collie = "file://disable-executable-stack-test.patch;patch=1"
36 PACKAGE_ARCH_mplayer_collie = "collie"
37 PACKAGE_ARCH_mencoder_collie = "collie"
39 RCONFLICTS_${PN} = "mplayer-atty"
40 RREPLACES_${PN} = "mplayer-atty"
45 DEPENDS_append_c7x0 = " sharp-aticore-oss libw100 "
46 DEPENDS_append_hx4700 = " libw100 "
48 S = "${WORKDIR}/MPlayer-1.0rc1"
50 PACKAGES =+ "mencoder"
52 FILES_${PN} = "${bindir}/mplayer ${libdir}"
53 FILES_mencoder = "${bindir}/mencoder"
55 inherit autotools pkgconfig
60 --target=${TARGET_SYS} \
65 --disable-linux-devfs \
70 --disable-xf86keysym \
73 --disable-tv-bsdbt848 \
81 --disable-cdparanoia \
89 --disable-macosx-finder-support \
90 --disable-macosx-bundle \
106 --disable-libavutil_so \
107 --disable-libavcodec_so \
108 --disable-libavformat_so \
109 --disable-libpostproc_so \
112 --enable-tremor-low \
128 --disable-amr_nb-fixed \
175 --disable-win32waveout \
178 --disable-runtime-cpudetection \
181 EXTRA_OECONF_append_arm = " --disable-decoder=vorbis_decoder \
182 --disable-encoder=vorbis_encoder"
184 EXTRA_OECONF_append_progear = " --disable-sse --disable-3dnow --disable-mmxext --disable-sse2"
186 #enable support for the ati imageon series (w100 and w3220)
187 EXTRA_OECONF_append_c7x0 = " --enable-w100 "
188 EXTRA_OECONF_append_hx4700 = " --enable-imageon "
190 #enable pxa270 overlay support
191 EXTRA_OECONF_append_spitz = " --enable-pxa "
192 EXTRA_OECONF_append_akita = " --enable-pxa "
193 EXTRA_OECONF_append_a780 = " --enable-pxa "
194 EXTRA_OECONF_append_magician = " --enable-pxa "
195 EXTRA_OECONF_append_htcuniversal = " --enable-pxa "
196 EXTRA_OECONF_append_palmld = " --enable-pxa "
198 #build with support for the iwmmxt instruction support (pxa270 and up)
199 TARGET_CC_ARCH_spitz = "-march=iwmmxt -mtune=iwmmxt"
200 PACKAGE_ARCH_spitz = "iwmmxt"
201 TARGET_CC_ARCH_akita = "-march=iwmmxt -mtune=iwmmxt"
202 PACKAGE_ARCH_akita = "iwmmxt"
203 TARGET_CC_ARCH_a780 = "-march=iwmmxt -mtune=iwmmxt"
204 PACKAGE_ARCH_a780 = "iwmmxt"
205 TARGET_CC_ARCH_hx4700 = "-march=iwmmxt -mtune=iwmmxt"
206 PACKAGE_ARCH_hx4700 = "iwmmxt"
207 TARGET_CC_ARCH_magician = "-march=iwmmxt -mtune=iwmmxt"
208 PACKAGE_ARCH_magician = "iwmmxt"
209 TARGET_CC_ARCH_htcuniversal = "-march=iwmmxt -mtune=iwmmxt"
210 PACKAGE_ARCH_htcuniversal = "iwmmxt"
211 TARGET_CC_ARCH_palmld = "-march=iwmmxt -mtune=iwmmxt"
212 PACKAGE_ARCH_palmld = "iwmmxt"
215 cp ${WORKDIR}/vo_w100.c ${S}/libvo
216 cp ${WORKDIR}/vo_w100_api.h ${S}/libvo
217 cp ${WORKDIR}/vo_w100_fb.h ${S}/libvo
218 cp ${WORKDIR}/vo_pxa.c ${S}/libvo
219 cp ${WORKDIR}/vo_pxa.h ${S}/libvo
221 sed -i 's|/usr/include|${STAGING_INCDIR}|g' ${S}/configure
222 sed -i 's|/usr/lib|${STAGING_LIBDIR}|g' ${S}/configure
223 sed -i 's|/usr/\S*include[\w/]*||g' ${S}/configure
224 sed -i 's|/usr/\S*lib[\w/]*||g' ${S}/configure
226 ./configure ${EXTRA_OECONF}