package/fltk: add optional xlib_libXrender dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 17 Mar 2019 15:29:29 +0000 (16:29 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 17 Mar 2019 15:49:52 +0000 (16:49 +0100)
xlib_libXrender is enabled by default and has been added since version
1.3.4-1 and
https://github.com/fltk/fltk/commit/a6c4b29a184ce7708819f4706877eedcd99a30f5

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/fltk/fltk.mk

index 611d79da508aed9f281c3553d56c926a284fb4fc..c37a13176ce1ac8d4c9a16228379f43f04ffdd52 100644 (file)
@@ -54,4 +54,11 @@ else
 FLTK_CONF_OPTS += --disable-xinerama
 endif
 
+ifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y)
+FLTK_DEPENDENCIES += xlib_libXrender
+FLTK_CONF_OPTS += --enable-xrender
+else
+FLTK_CONF_OPTS += --disable-xrender
+endif
+
 $(eval $(autotools-package))