summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-02-08 10:42:23 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-02-08 10:42:56 (GMT)
commit9a9fdf92893c0b5e3ed904b59bd30e63ba8987c3 (patch)
tree0b5732b79f205076b909f43a95a314cf79e3b0c8
parente1231afc0190d6dbb0d1ed704637b70ff50d2927 (diff)
downloadbuildroot-9a9fdf92893c0b5e3ed904b59bd30e63ba8987c3.tar.gz
buildroot-9a9fdf92893c0b5e3ed904b59bd30e63ba8987c3.tar.bz2
sdl: fix X11 dependencies
No need to build the entire X server to build SDL with X11 support. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/sdl/Config.in2
-rw-r--r--package/sdl/sdl.mk4
2 files changed, 5 insertions, 1 deletions
diff --git a/package/sdl/Config.in b/package/sdl/Config.in
index 869173d..65ac8a2 100644
--- a/package/sdl/Config.in
+++ b/package/sdl/Config.in
@@ -24,5 +24,7 @@ config BR2_PACKAGE_SDL_QTOPIA
config BR2_PACKAGE_SDL_X11
bool "SDL X11 video driver"
depends on BR2_PACKAGE_XORG7
+ select BR2_PACKAGE_XLIB_LIBX11
+ select BR2_PACKAGE_XLIB_LIBXEXT
endif
diff --git a/package/sdl/sdl.mk b/package/sdl/sdl.mk
index f15a521..5460f51 100644
--- a/package/sdl/sdl.mk
+++ b/package/sdl/sdl.mk
@@ -32,7 +32,9 @@ endif
ifeq ($(BR2_PACKAGE_SDL_X11),y)
SDL_CONF_OPT+=--enable-video-x11=yes
-SDL_DEPENDENCIES += xserver_xorg-server
+SDL_DEPENDENCIES += xlib_libX11 xlib_libXext \
+ $(if $(BR2_PACKAGE_XLIB_LIBXRENDER), xlib_libXrender) \
+ $(if $(BR2_PACKAGE_XLIB_LIBXRANDR), xlib_libXrandr)
else
SDL_CONF_OPT+=--enable-video-x11=no
endif