From b3a31833e37a8134294fb0c9a2f66aab74859813 Mon Sep 17 00:00:00 2001 From: Graeme Gregory Date: Tue, 8 Nov 2005 15:33:09 +0000 Subject: mplayer-atty-1.1.5 : Enable ALSA A small hack required to the configure file as it tries to run a program to determine which version of alsa is installed. Have put this to a fixed version as OE only has 1.0+ in it. --- .../mplayer-atty-1.1.5/alsa-configure.patch | 37 ++++++++++++++++++++++ packages/mplayer/mplayer-atty_1.1.5.bb | 8 +++-- 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 packages/mplayer/mplayer-atty-1.1.5/alsa-configure.patch (limited to 'packages') diff --git a/packages/mplayer/mplayer-atty-1.1.5/alsa-configure.patch b/packages/mplayer/mplayer-atty-1.1.5/alsa-configure.patch new file mode 100644 index 0000000000..ad6d4504e1 --- /dev/null +++ b/packages/mplayer/mplayer-atty-1.1.5/alsa-configure.patch @@ -0,0 +1,37 @@ +--- mplayer-1.1.5/configure.orig 2005-11-08 15:07:52.000000000 +0000 ++++ mplayer-1.1.5/configure 2005-11-08 15:08:40.000000000 +0000 +@@ -4627,33 +4627,7 @@ + echocheck "ALSA audio" + if test "$_alsa" != no ; then + _alsa=no +- cat > $TMPC << EOF +-#include +-int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==5)); } +-EOF +- cc_check -lasound $_ld_dl $_ld_pthread && $TMPO && _alsaver='0.5.x' +- +- cat > $TMPC << EOF +-#include +-int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)); } +-EOF +- cc_check -lasound $_ld_dl $_ld_pthread && $TMPO && _alsaver='0.9.x-sys' +- cat > $TMPC << EOF +-#include +-int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)); } +-EOF +- cc_check -lasound $_ld_dl $_ld_pthread && $TMPO && _alsaver='0.9.x-alsa' +- +- cat > $TMPC << EOF +-#include +-int main(void) { return (!(SND_LIB_MAJOR==1 && SND_LIB_MINOR==0)); } +-EOF +- cc_check -lasound $_ld_dl $_ld_pthread && $TMPO && _alsaver='1.0.x-sys' +- cat > $TMPC << EOF +-#include +-int main(void) { return (!(SND_LIB_MAJOR==1 && SND_LIB_MINOR==0)); } +-EOF +- cc_check -lasound $_ld_dl $_ld_pthread && $TMPO && _alsaver='1.0.x-alsa' ++ _alsaver='1.0.x-alsa' + fi + _def_alsa5='#undef HAVE_ALSA5' + _def_alsa9='#undef HAVE_ALSA9' diff --git a/packages/mplayer/mplayer-atty_1.1.5.bb b/packages/mplayer/mplayer-atty_1.1.5.bb index 1ee4a49936..eb8d8ad124 100644 --- a/packages/mplayer/mplayer-atty_1.1.5.bb +++ b/packages/mplayer/mplayer-atty_1.1.5.bb @@ -2,18 +2,19 @@ DESCRIPTION = "Open Source multimedia player." SECTION = "opie/multimedia" PRIORITY = "optional" HOMEPAGE = "http://atty.jp/?Zaurus%2Fmplayer" -DEPENDS = "virtual/libsdl freetype libmad libogg libvorbis zlib libpng jpeg" +DEPENDS = "virtual/libsdl freetype libmad libogg libvorbis zlib libpng jpeg alsa-lib" LICENSE = "GPL" RCONFLICTS = "mplayer" MAINTAINER = "Graeme Gregory " -PR = "r2" +PR = "r3" SRC_URI = "http://www.xora.org.uk/oe/mplayer-${PV}.tar.gz \ file://Makefile.patch;patch=1;pnum=0 \ file://sdl.patch;patch=1 \ file://Makefile-libs.patch;patch=1 \ file://libmpdemux-ogg-include.patch;patch=1 \ - file://libmpcodecs-ogg-include.patch;patch=1 " + file://libmpcodecs-ogg-include.patch;patch=1 \ + file://alsa-configure.patch;patch=1 " PARALLEL_MAKE = "" @@ -54,6 +55,7 @@ EXTRA_OECONF = " \ --enable-dynamic-plugins \ --enable-fbdev \ --enable-sdl \ + --enable-alsa \ --with-sdl-config=${STAGING_BINDIR}/sdl-config \ \ --enable-mad \ -- cgit v1.2.3