mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] Add tslib dependency to SDL
@ 2012-01-24 12:10 Juergen Beisert
  0 siblings, 0 replies; only message in thread
From: Juergen Beisert @ 2012-01-24 12:10 UTC (permalink / raw)
  To: ptxdist

The SDL configure stage guesses if the tslib is available. So, if touchscreen
support is available at runtime or not depends on the build order. This patch
fixes the build order on demand.

Reported-by: Wingston Sharon <wingston.sharon@gmail.com>
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

diff --git a/rules/sdl.in b/rules/sdl.in
index 1dbb2ab..9a6b4ad 100644
--- a/rules/sdl.in
+++ b/rules/sdl.in
@@ -17,6 +17,7 @@ menuconfig SDL
 	select ALSA_LIB			if SDL_ALSA
 	select DIRECTFB			if SDL_DIRECTFB
 	select CROSS_NASM		if SDL_NASM
+	select TSLIB			if SDL_TSLIB
 	help
 	  Simple DirectMedia Layer is a cross-platform multimedia
 	  library designed to provide low level access to audio,
@@ -252,4 +253,10 @@ config SDL_PTH
 	help
 	  Turn on support for GNU Portable Threads
 
+config SDL_TSLIB
+	bool
+	prompt "tslib Support"
+	help
+	  Turn on support for the touchscreen library 'tslib'
+
 endif
diff --git a/rules/sdl.make b/rules/sdl.make
index 17f2e68..d96b279 100644
--- a/rules/sdl.make
+++ b/rules/sdl.make
@@ -43,7 +43,9 @@ SDL_ENV 	:= $(CROSS_ENV)
 #
 # autoconf
 #
-SDL_AUTOCONF := $(CROSS_AUTOCONF_USR)
+SDL_AUTOCONF := \
+	$(CROSS_AUTOCONF_USR) \
+	--$(call ptx/endis,PTXCONF_SDL_TSLIB)-input-tslib \
 
 ifdef PTXCONF_SDL_SHARED
 SDL_AUTOCONF += --enable-shared

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-24 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-24 12:10 [ptxdist] [PATCH] Add tslib dependency to SDL Juergen Beisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox