summaryrefslogtreecommitdiff
path: root/package/mplayer
diff options
context:
space:
mode:
Diffstat (limited to 'package/mplayer')
-rw-r--r--package/mplayer/Config.in16
-rw-r--r--package/mplayer/Makefile86
-rw-r--r--package/mplayer/ipkg/mplayer.control5
-rw-r--r--package/mplayer/patches/patch-configure39
-rw-r--r--package/mplayer/patches/patch-loader_win32_c11
5 files changed, 157 insertions, 0 deletions
diff --git a/package/mplayer/Config.in b/package/mplayer/Config.in
new file mode 100644
index 000000000..a1f1b676b
--- /dev/null
+++ b/package/mplayer/Config.in
@@ -0,0 +1,16 @@
+config ADK_PACKAGE_MPLAYER
+ prompt "mplayer........................... popular movie player"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBPTHREAD
+ select ADK_PACKAGE_LIBOGG
+ select ADK_PACKAGE_LIBVORBIS
+ select ADK_PACKAGE_LIBMAD
+ select ADK_PACKAGE_ALSA_LIB
+ select ADK_PACKAGE_ZLIB
+ select ADK_PACKAGE_LIBNCURSES
+ select ADK_PACKAGE_LIBFAAD2
+ depends on ADK_LINUX_X86_ALIX1C
+ help
+ http://www.mplayerhq.hu
+
diff --git a/package/mplayer/Makefile b/package/mplayer/Makefile
new file mode 100644
index 000000000..73167c97b
--- /dev/null
+++ b/package/mplayer/Makefile
@@ -0,0 +1,86 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= mplayer
+PKG_VERSION:= 1.0rc2
+PKG_RELEASE:= 2
+PKG_MD5SUM:= 7e27e535c2d267637df34898f1b91707
+DISTFILES:= MPlayer-${PKG_VERSION}.tar.bz2
+MASTER_SITES:= http://www7.mplayerhq.hu/MPlayer/releases/
+
+WRKDIST= ${WRKDIR}/MPlayer-${PKG_VERSION}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,MPLAYER,mplayer,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+pre-configure:
+ (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
+ ./configure \
+ --prefix=/usr \
+ --confdir=/etc \
+ --enable-cross-compile \
+ --target=$(REAL_GNU_TARGET_NAME) \
+ --cc=$(TARGET_CC) \
+ --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-mad \
+ --enable-faad-external \
+ --disable-faad-internal \
+ --enable-libvorbis \
+ --disable-ossaudio \
+ --disable-vm \
+ --disable-iconv \
+ --disable-lirc \
+ --disable-radio-v4l2 \
+ --disable-faac \
+ --disable-libdv \
+ --disable-live \
+ --disable-pvr \
+ --disable-ftp \
+ --disable-v4l2 \
+ --disable-ivtv \
+ --enable-vidix-internal \
+ --disable-dvdread-internal \
+ --disable-libdvdcss-internal \
+ --disable-freetype \
+ --disable-tremor-internal \
+ --disable-arts \
+ --disable-esd \
+ --disable-polyp \
+ --disable-jack \
+ --disable-openal \
+ --disable-nas \
+ --disable-sgiaudio \
+ --disable-sunaudio \
+ --disable-win32waveout \
+ --disable-tga \
+ --disable-pnm \
+ --disable-md5sum \
+ --disable-x11 \
+ );
+
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin
+ ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/mplayer/ipkg/mplayer.control b/package/mplayer/ipkg/mplayer.control
new file mode 100644
index 000000000..80f0ff0d5
--- /dev/null
+++ b/package/mplayer/ipkg/mplayer.control
@@ -0,0 +1,5 @@
+Package: mplayer
+Priority: optional
+Section: video
+Depends: zlib, libncurses, libmad, alsa-lib, libvorbis, libogg, libfaad2, libpthread
+Description: popular video player
diff --git a/package/mplayer/patches/patch-configure b/package/mplayer/patches/patch-configure
new file mode 100644
index 000000000..4ef4de805
--- /dev/null
+++ b/package/mplayer/patches/patch-configure
@@ -0,0 +1,39 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- MPlayer-1.0rc2.orig/configure 2007-10-07 21:49:33.000000000 +0200
++++ MPlayer-1.0rc2/configure 2009-05-10 18:37:32.000000000 +0200
+@@ -2331,7 +2331,7 @@ elif test -z "$CFLAGS" ; then
+ elif test "$cc_vendor" != "gnu" ; then
+ CFLAGS="-O2 $_march $_mcpu $_pipe"
+ else
+- CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
++ CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
+ fi
+ else
+ _warn_CFLAGS=yes
+@@ -3853,26 +3853,6 @@ else
+ fi
+
+
+-echocheck "X11 headers presence"
+- _x11_headers="no"
+- _res_comment="check if the dev(el) packages are installed"
+- for I in `echo $_inc_extra | sed s/-I//g` /usr/include ; do
+- if test -f "$I/X11/Xlib.h" ; then
+- _x11_headers="yes"
+- _res_comment=""
+- break
+- fi
+- done
+- for I in /usr/X11/include /usr/X11R6/include /usr/include/X11R6 /usr/openwin/include ; do
+- if test -f "$I/X11/Xlib.h" ; then
+- _inc_extra="$_inc_extra -I$I"
+- _x11_headers="yes"
+- _res_comment="using $I"
+- break
+- fi
+- done
+-echores "$_x11_headers"
+-
+
+ echocheck "X11"
+ if test "$_x11" = auto && test "$_x11_headers" = yes ; then
diff --git a/package/mplayer/patches/patch-loader_win32_c b/package/mplayer/patches/patch-loader_win32_c
new file mode 100644
index 000000000..e5537e02a
--- /dev/null
+++ b/package/mplayer/patches/patch-loader_win32_c
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- MPlayer-1.0rc2.orig/loader/win32.c 2007-10-07 21:49:32.000000000 +0200
++++ MPlayer-1.0rc2/loader/win32.c 2008-10-28 15:29:47.000000000 +0100
+@@ -63,7 +63,6 @@ for DLL to know too much about its envir
+ #include <sys/types.h>
+ #include <dirent.h>
+ #include <sys/time.h>
+-#include <sys/timeb.h>
+ #ifdef HAVE_KSTAT
+ #include <kstat.h>
+ #endif