summaryrefslogtreecommitdiff
path: root/package/mplayer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/mplayer/Makefile')
-rw-r--r--package/mplayer/Makefile45
1 files changed, 33 insertions, 12 deletions
diff --git a/package/mplayer/Makefile b/package/mplayer/Makefile
index b3a908e8b..0c330a792 100644
--- a/package/mplayer/Makefile
+++ b/package/mplayer/Makefile
@@ -1,5 +1,3 @@
-# $Id$
-#-
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
@@ -11,7 +9,7 @@ PKG_RELEASE:= 2
PKG_MD5SUM:= 7e27e535c2d267637df34898f1b91707
PKG_DESCR:= popular video player
PKG_SECTION:= video
-PKG_DEPENDS:= zlib libncurses libmad alsa-lib libvorbis libogg libfaad2 libpthread
+PKG_DEPENDS:= zlib libncurses libmad alsa-lib libvorbis libogg libfaad2 libpthread libpng libjpeg
PKG_URL:= http://www.mplayerhq.hu
PKG_SITES:= http://www7.mplayerhq.hu/MPlayer/releases/
@@ -25,6 +23,32 @@ $(eval $(call PKG_template,MPLAYER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${P
BUILD_STYLE:= auto
INSTALL_STYLE:= auto
+ifeq ($(ADK_X11),y)
+CONFIGURE_ARG:= --enable-x11
+else
+CONFIGURE_ARG:= --disable-x11
+endif
+
+ifeq (${ADK_LINUX_X86_ALIX1C},y)
+CONFIGURE_CPU_OPTS:= \
+ --disable-ssse3 \
+ --disable-sse2 \
+ --disable-sse \
+ --enable-mmxext \
+ --enable-3dnowext \
+ --enable-mmx \
+ --enable-3dnow
+else
+CONFIGURE_CPU_OPTS:= \
+ --disable-ssse3 \
+ --disable-sse2 \
+ --disable-sse \
+ --disable-mmxext \
+ --disable-3dnowext \
+ --disable-mmx \
+ --disable-3dnow
+endif
+
pre-configure:
(cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
./configure \
@@ -36,16 +60,11 @@ pre-configure:
--host-cc=$(HOSTCC) \
--with-extraincdir=$(STAGING_DIR)/usr/include \
--with-extralibdir=$(STAGING_DIR)/usr/lib \
- --disable-ssse3 \
- --disable-sse2 \
- --disable-sse \
- --enable-mmxext \
- --enable-3dnowext \
- --enable-mmx \
- --enable-3dnow \
--disable-mencoder \
--enable-fbdev \
--enable-alsa \
+ --enable-png \
+ --enable-jpeg \
--enable-mad \
--enable-faad-external \
--disable-faad-internal \
@@ -62,7 +81,7 @@ pre-configure:
--disable-ftp \
--disable-v4l2 \
--disable-ivtv \
- --enable-vidix-internal \
+ --disable-vidix-internal \
--disable-dvdread-internal \
--disable-libdvdcss-internal \
--disable-freetype \
@@ -79,7 +98,9 @@ pre-configure:
--disable-tga \
--disable-pnm \
--disable-md5sum \
- --disable-x11 \
+ --disable-liblzo \
+ ${CONFIGURE_CPU_OPTS} \
+ ${CONFIGURE_ARG} \
);