summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-05-10 06:29:26 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-11 22:39:41 +0200
commit24b950f76f5f88817991bb9238356325dc43bba6 (patch)
treee9604aa32be2d3f629acb55ffe0c2273bb21cb95
parent3a91b976b7c12a46536f12b430b3af4335556a09 (diff)
downloadbuildroot-novena-24b950f76f5f88817991bb9238356325dc43bba6.tar.gz
buildroot-novena-24b950f76f5f88817991bb9238356325dc43bba6.zip
imlib2: handle imlib2-config script
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/imlib2/imlib2.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/imlib2/imlib2.mk b/package/imlib2/imlib2.mk
index c7029aeb6..cec67066b 100644
--- a/package/imlib2/imlib2.mk
+++ b/package/imlib2/imlib2.mk
@@ -12,6 +12,7 @@ IMLIB2_LICENSE_FILES = COPYING
IMLIB2_INSTALL_STAGING = YES
IMLIB2_DEPENDENCIES = host-pkgconf freetype
IMLIB2_CONF_OPT = --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
+IMLIB2_CONFIG_SCRIPTS = imlib2-config
ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
IMLIB2_CONF_OPT += --with-x
@@ -57,10 +58,7 @@ endif
# drop -L<dir> from linker flags
define IMLIB2_FIXUP_IMLIB2_CONFIG
- $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
- -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
- -e 's/-L[^ ]*//g' \
- $(STAGING_DIR)/usr/bin/imlib2-config
+ $(SED) 's/-L[^ ]*//g' $(STAGING_DIR)/usr/bin/imlib2-config
endef
IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG