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"
7 DEFAULT_PREFERENCE_avr32 = "-1"
10 PV = "0.0+1.0rc1+svnr${SRCPV}"
13 RCONFLICTS_${PN} = "mplayer"
15 RDEPENDS = "mplayer-common"
17 SRC_URI = "svn://garage.maemo.org/svn/mplayer/;module=trunk;proto=https \
18 file://Makefile-codec-cfg.patch;patch=1 \
19 file://pld-onlyarm5.patch;patch=1 \
20 file://makefile-nostrip.patch;patch=1 \
21 file://motion-comp-pld.patch;patch=1 \
22 file://cfg-common-position.patch;patch=1 "
24 # This is required for the collie machine only as all stacks in that
25 # machine seem to be set to executable by the toolchain. If someone
26 # discovers this is more general than please make this more general
27 # ie. for all armv4 machines.
28 SRC_URI_append_collie = "file://disable-executable-stack-test.patch;patch=1"
30 PACKAGE_ARCH_collie = "collie"
34 S = "${WORKDIR}/trunk"
36 PACKAGES =+ "mencoder"
38 FILES_${PN} = "${bindir}/mplayer ${libdir}"
39 FILES_mencoder = "${bindir}/mencoder"
41 inherit autotools pkgconfig
46 --target=${TARGET_SYS} \
51 --disable-linux-devfs \
56 --disable-xf86keysym \
60 --disable-tv-bsdbt848 \
68 --disable-cdparanoia \
76 --disable-macosx-finder-support \
77 --disable-macosx-bundle \
92 --disable-libavutil_so \
93 --disable-libavcodec_so \
94 --disable-libavformat_so \
95 --disable-libpostproc_so \
155 --disable-win32waveout \
161 EXTRA_OECONF_append_armv6 = " --enable-armv6 --enable-arm-vfp"
162 EXTRA_OECONF_append_armv7a = "--enable-armv6 --enable-arm-vfp"
164 #build with support for the iwmmxt instruction and pxa270fb overlay support (pxa270 and up)
165 #not every iwmmxt machine has the lcd connected to pxafb, but building the module doesn't hurt
166 MY_ARCH := "${PACKAGE_ARCH}"
167 PACKAGE_ARCH = "${@base_contains('MACHINE_FEATURES', 'iwmmxt', 'iwmmxt', '${MY_ARCH}',d)}"
169 MY_TARGET_CC_ARCH := "${TARGET_CC_ARCH}"
170 TARGET_CC_ARCH = "${@base_contains('MACHINE_FEATURES', 'iwmmxt', '-march=iwmmxt -mtune=iwmmxt', '${MY_TARGET_CC_ARCH}',d)}"
172 EXTRA_OECONF_append = " ${@base_contains('MACHINE_FEATURES', 'iwmmxt', '--enable-pxa --enable-iwmmxt', '',d)} "
173 EXTRA_OECONF_append = " ${@base_contains('MACHINE_FEATURES', 'x86', '--enable-runtime-cpudetection', '',d)} "
175 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O4 -ffast-math"
176 FULL_OPTIMIZATION_armv7a = "-fexpensive-optimizations -ftree-vectorize -fomit-frame-pointer -O4 -ffast-math"
177 BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}"
181 sed -i 's|/usr/include|${STAGING_INCDIR}|g' ${S}/configure
182 sed -i 's|/usr/lib|${STAGING_LIBDIR}|g' ${S}/configure
183 sed -i 's|/usr/\S*include[\w/]*||g' ${S}/configure
184 sed -i 's|/usr/\S*lib[\w/]*||g' ${S}/configure
186 ./configure ${EXTRA_OECONF}