sdl: fix X11 dependencies
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 8 Feb 2012 10:42:23 +0000 (11:42 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 8 Feb 2012 10:42:56 +0000 (11:42 +0100)
No need to build the entire X server to build SDL with X11 support.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/sdl/Config.in
package/sdl/sdl.mk

index 869173d88f8e7ee251f1b37679de9397b783fc6b..65ac8a246924e70e086e4900137915f9677bd19d 100644 (file)
@@ -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
index f15a5213cc20509730b8a681f33d700967062b7f..5460f51e6b16d2bf74fa3db50bad204188d0bc87 100644 (file)
@@ -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