From 88378877273829c387f48a6c96959712b892856f Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 20 May 2013 23:29:40 +0000 Subject: [PATCH] directfb: add optional imlib2 support [Peter: drop default y] Signed-off-by: Markos Chandras Signed-off-by: Peter Korsgaard --- package/directfb/Config.in | 4 ++++ package/directfb/directfb.mk | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/package/directfb/Config.in b/package/directfb/Config.in index b9ff5f9a08..4712db0be6 100644 --- a/package/directfb/Config.in +++ b/package/directfb/Config.in @@ -100,6 +100,10 @@ config BR2_PACKAGE_DIRECTFB_GIF bool "enable GIF support" default y +config BR2_PACKAGE_DIRECTFB_IMLIB2 + bool "enable IMLIB2 support" + select BR2_PACKAGE_IMLIB2 + config BR2_PACKAGE_DIRECTFB_JPEG bool "enable JPEG support" default y diff --git a/package/directfb/directfb.mk b/package/directfb/directfb.mk index 5ead0846d3..e5a423d79b 100644 --- a/package/directfb/directfb.mk +++ b/package/directfb/directfb.mk @@ -108,6 +108,14 @@ else DIRECTFB_CONF_OPT += --disable-jpeg endif +ifeq ($(BR2_PACKAGE_DIRECTFB_IMLIB2),y) +DIRECTFB_CONF_OPT += --enable-imlib2 +DIRECTFB_DEPENDENCIES += imlib2 +DIRECTFB_CONF_ENV += ac_cv_path_IMLIB2_CONFIG=$(STAGING_DIR)/usr/bin/imlib2-config +else +DIRECTFB_CONF_OPT += --disable-imlib2 +endif + ifeq ($(BR2_PACKAGE_DIRECTFB_DITHER_RGB16),y) DIRECTFB_CONF_OPT += --with-dither-rgb16=advanced else -- 2.30.2