summaryrefslogtreecommitdiff
path: root/package/sdl/sdl.mk
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2014-01-09 11:57:33 (GMT)
committerPeter Korsgaard <peter@korsgaard.com>2014-01-09 15:22:32 (GMT)
commit4f3f23a55f0873562cad02629936dc5392ea5c40 (patch)
treecf9d09d110dbb481a2f15835b8c61ed66020da2a /package/sdl/sdl.mk
parentbb79b96472649ee1307c1d6ad14d626384395a22 (diff)
downloadbuildroot-4f3f23a55f0873562cad02629936dc5392ea5c40.tar.gz
buildroot-4f3f23a55f0873562cad02629936dc5392ea5c40.tar.bz2
sdl: Fix compilation with libX11 >= 1.5.99.902
Applying an upstream patch to fix a compilation error with versions of libX11 since 1.5.99.902. This patch modifies configure.in so we need to run autogen.sh to make it working correctly. Running autoreconf will fail because SDL uses bit tricky automake/autoconf configuration. Upstream patch URL: http://hg.libsdl.org/SDL/rev/91ad7b43317a Fixes: http://autobuild.buildroot.net/results/bf8/bf83466a7bbb0635d97fe279a18778d92f20bea2/ [Peter: add comment why we're doing this, add needed dependencies] Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/sdl/sdl.mk')
-rw-r--r--package/sdl/sdl.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/sdl/sdl.mk b/package/sdl/sdl.mk
index ef723dd..a30a31e 100644
--- a/package/sdl/sdl.mk
+++ b/package/sdl/sdl.mk
@@ -11,6 +11,16 @@ SDL_LICENSE = LGPLv2.1+
SDL_LICENSE_FILES = COPYING
SDL_INSTALL_STAGING = YES
+# we're patching configure.in, but package cannot autoreconf with our version of
+# autotools, so we have to do it manually instead of setting SD_AUTORECONF = YES
+define SDL_RUN_AUTOGEN
+ cd $(@D) && ./autogen.sh
+endef
+
+SDL_POST_PATCH_HOOKS += SDL_RUN_AUTOGEN
+SDL_DEPENDENCIES += host-automake host-autoconf host-libtool
+
+
ifeq ($(BR2_PACKAGE_SDL_FBCON),y)
SDL_CONF_OPT += --enable-video-fbcon=yes
else