mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] Add tslib dependency to SDL
Date: Tue, 24 Jan 2012 13:10:46 +0100	[thread overview]
Message-ID: <201201241310.47377.jbe@pengutronix.de> (raw)

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

                 reply	other threads:[~2012-01-24 12:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201201241310.47377.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox