diff --git a/package/xscreensaver/Config.in b/package/xscreensaver/Config.in index 48eefdfa70..ba259274d1 100644 --- a/package/xscreensaver/Config.in +++ b/package/xscreensaver/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_XSCREENSAVER bool "xscreensaver" depends on BR2_PACKAGE_XORG7 + depends on BR2_PACKAGE_HAS_LIBGL # libglu depends on BR2_INSTALL_LIBSTDCPP # libgtk2 -> pango depends on BR2_TOOLCHAIN_HAS_THREADS # gdk-pixbuf, libgtk2 -> glib2 depends on BR2_USE_WCHAR # gdk-pixbuf, libgtk2 -> glib2 @@ -9,7 +10,7 @@ config BR2_PACKAGE_XSCREENSAVER depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libgtk2 -> pango -> harfbuzz select BR2_PACKAGE_GDK_PIXBUF select BR2_PACKAGE_GDK_PIXBUF_XLIB - select BR2_PACKAGE_LIBGLU if BR2_PACKAGE_HAS_LIBGL + select BR2_PACKAGE_LIBGLU select BR2_PACKAGE_LIBGTK2 select BR2_PACKAGE_LIBXML2 select BR2_PACKAGE_JPEG @@ -28,10 +29,10 @@ config BR2_PACKAGE_XSCREENSAVER http://www.jwz.org/xscreensaver/ -comment "xscreensaver needs a toolchain w/ wchar, C++, threads, gcc >= 4.9" +comment "xscreensaver needs a toolchain w/ wchar, C++, threads, gcc >= 4.9, OpenGL backend" depends on BR2_PACKAGE_XORG7 depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ - !BR2_USE_WCHAR + !BR2_USE_WCHAR || !BR2_PACKAGE_HAS_LIBGL diff --git a/package/xscreensaver/xscreensaver.mk b/package/xscreensaver/xscreensaver.mk index 0a91d22d14..6cc7e8febe 100644 --- a/package/xscreensaver/xscreensaver.mk +++ b/package/xscreensaver/xscreensaver.mk @@ -17,6 +17,8 @@ XSCREENSAVER_DEPENDENCIES = \ gdk-pixbuf \ gdk-pixbuf-xlib \ jpeg \ + libgl \ + libglu \ libgtk2 \ libxml2 \ xlib_libX11 \ @@ -30,14 +32,8 @@ XSCREENSAVER_DEPENDENCIES = \ # compiler/linker XSCREENSAVER_CONF_OPTS = \ --includedir=$(STAGING_DIR)/usr/include \ - --libdir=$(STAGING_DIR)/usr/lib - -ifeq ($(BR2_PACKAGE_HAS_LIBGL),y) -XSCREENSAVER_CONF_OPTS += --with-gl=yes -XSCREENSAVER_DEPENDENCIES += libgl libglu -else -XSCREENSAVER_CONF_OPTS += --with-gl=no -endif + --libdir=$(STAGING_DIR)/usr/lib \ + --with-gl=yes ifeq ($(BR2_PACKAGE_LIBPNG),y) XSCREENSAVER_CONF_OPTS += --with-png=yes