diff options
author | Phil Sutter <phil@nwl.cc> | 2010-06-14 01:58:12 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2010-06-20 16:24:34 +0200 |
commit | d9d75253eb42ecfb68e8f379dde02102fda9d9f2 (patch) | |
tree | f43c25cb960ab19d1e04f3eb7ee24a2776a61277 /package | |
parent | 811342f7eb50ed9fa34ef2684a0a0e8650628fd8 (diff) |
mplayer: add DirectFB video out flavour
Diffstat (limited to 'package')
-rw-r--r-- | package/mplayer/Makefile | 24 | ||||
-rw-r--r-- | package/mplayer/patches/patch-configure | 11 |
2 files changed, 34 insertions, 1 deletions
diff --git a/package/mplayer/Makefile b/package/mplayer/Makefile index 791908d23..bf6279350 100644 --- a/package/mplayer/Makefile +++ b/package/mplayer/Makefile @@ -14,9 +14,16 @@ PKG_DEPENDS+= libogg libpng libpthread libvorbis PKG_DEPENDS+= libx11 libxau libxdmcp libxext libxv zlib PKG_BUILDDEP+= alsa-lib libmad libvorbis faad2 ncurses zlib PKG_BUILDDEP+= libX11 libXv libpng libXext +ifeq (${ADK_PACKAGE_MPD_WITH_DIRECTFB},y) +PKG_DEPENDS+= DirectFB +PKG_BUILDDEP+= DirectFB +endif PKG_URL:= http://www.mplayerhq.hu PKG_SITES:= http://openadk.org/distfiles/ +PKG_FLAVOURS:= WITH_DIRECTFB +PKGFD_WITH_DIRECTFB:= enable DirectFB video output support + PKG_TARGET_DEPENDS:= alix1c x86_qemu x86_64_qemu shuttle lemote include ${TOPDIR}/mk/package.mk @@ -31,6 +38,14 @@ ifeq (${ADK_LINUX_MIPS64_LOONGSON},y) XAKE_FLAGS+= -DHAVE_LOONGSON -DARCH_MIPS64 endif +# Somehow this include path is missing here, although other +# applications build fine against DirectFB. There is also a +# related patch to allow configure to find out the DirectFB +# version number. +ifeq (${ADK_PACKAGE_MPD_WITH_DIRECTFB},y) +TCFLAGS+= -I${STAGING_DIR}/usr/include/directfb +endif + ifeq (${ADK_LINUX_X86_ALIX1C},y) CONFIGURE_CPU_OPTS:= \ --disable-ssse3 \ @@ -55,6 +70,12 @@ ifeq ($(ADK_DEBUG),y) CONFIGURE_DEBUG= --enable-debug endif +ifeq (${ADK_PACKAGE_MPD_WITH_DIRECTFB},y) +CONFIGURE_DIRECTFB=--enable-directfb +else +CONFIGURE_DIRECTFB=--disable-directfb +endif + pre-configure: (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \ ./configure \ @@ -105,8 +126,9 @@ pre-configure: --disable-vidix \ ${CONFIGURE_CPU_OPTS} \ ${CONFIGURE_DEBUG} \ + ${CONFIGURE_DIRECTFB} \ ); - + post-install: ${INSTALL_DIR} ${IDIR_MPLAYER}/usr/bin ${CP} ${WRKINST}/usr/bin/mplayer ${IDIR_MPLAYER}/usr/bin diff --git a/package/mplayer/patches/patch-configure b/package/mplayer/patches/patch-configure new file mode 100644 index 000000000..aabaf8282 --- /dev/null +++ b/package/mplayer/patches/patch-configure @@ -0,0 +1,11 @@ +--- mplayer-1.0-29987.orig/configure 2009-12-10 13:18:20.000000000 +0100 ++++ mplayer-1.0-29987/configure 2010-06-13 22:58:34.756925268 +0200 +@@ -4141,7 +4141,7 @@ dfb_version() { + + if test "$_directfb" = yes; then + cat > $TMPC << EOF +-#include <directfb_version.h> ++#include <directfb/directfb_version.h> + int + dfb_ver = DIRECTFB_MAJOR_VERSION.DIRECTFB_MINOR_VERSION.DIRECTFB_MICRO_VERSION + ; |