From ced7d15a53fc6b114c68dee54eeefd57fc70e1f1 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 25 Nov 2010 18:05:03 +0100 Subject: [PATCH] SDL: add autoreconf support Signed-off-by: Stephan Raue --- packages/multimedia/SDL/build | 6 ++++++ packages/multimedia/SDL/meta | 1 + .../multimedia/SDL/patches/SDL-1.2.14-configure.patch | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 packages/multimedia/SDL/patches/SDL-1.2.14-configure.patch diff --git a/packages/multimedia/SDL/build b/packages/multimedia/SDL/build index 5359544df7..287b086b9a 100755 --- a/packages/multimedia/SDL/build +++ b/packages/multimedia/SDL/build @@ -3,6 +3,12 @@ . config/options $1 cd $PKG_BUILD + +rm -f acinclude/alsa.m4 +# Skip autoheader because there is a problem with AC_DEFINE's in the configure.in of SDL 1.2.14. +# Added include directory 'acinclude' because SDL 1.2.14 has no Makefile.am in which to specify it. + AUTOHEADER="true" autoreconf --verbose --install --force -I $SYSROOT_PREFIX/usr/share/aclocal -I acinclude + ./configure --host=$TARGET_NAME \ --build=$HOST_NAME \ --prefix=/usr \ diff --git a/packages/multimedia/SDL/meta b/packages/multimedia/SDL/meta index 0214f7b0e5..13fcd74ec2 100644 --- a/packages/multimedia/SDL/meta +++ b/packages/multimedia/SDL/meta @@ -13,3 +13,4 @@ PKG_SHORTDESC="libsdl: A cross-platform Graphic API" PKG_LONGDESC="Simple DirectMedia Layer is a cross-platform multimedia library designed to provide fast access to the graphics framebuffer and audio device. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of 'Civilization: Call To Power.' Simple DirectMedia Layer supports Linux, Win32, BeOS, MacOS, Solaris, IRIX, and FreeBSD." PKG_IS_ADDON="no" +PKG_AUTORECONF="" diff --git a/packages/multimedia/SDL/patches/SDL-1.2.14-configure.patch b/packages/multimedia/SDL/patches/SDL-1.2.14-configure.patch new file mode 100644 index 0000000000..b6fdf484f5 --- /dev/null +++ b/packages/multimedia/SDL/patches/SDL-1.2.14-configure.patch @@ -0,0 +1,11 @@ +diff -Naur SDL-1.2.14-old/configure.in SDL-1.2.14-new/configure.in +--- SDL-1.2.14-old/configure.in 2009-10-17 10:35:03.000000000 -0700 ++++ SDL-1.2.14-new/configure.in 2010-08-17 16:42:33.000000000 -0700 +@@ -3,6 +3,7 @@ + AC_CONFIG_HEADER(include/SDL_config.h) + AC_GNU_SOURCE + AC_CONFIG_AUX_DIRS($srcdir/build-scripts) ++AC_CONFIG_MACRO_DIR([acinclude]) + + dnl Set various version strings - taken gratefully from the GTk sources + #