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