summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Fröberg <stefan.froberg@petroprogram.com>2013-01-03 12:09:01 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-01-04 21:30:35 (GMT)
commit5a6f270344f7c6e857702bbd5591a62f59f12b2a (patch)
tree53a5c6475e3795e1a0b1a691b51bd89349f298fb
parentbdcbd9fb3dedc69c3b6a6742701ff204dd9fba0a (diff)
downloadbuildroot-5a6f270344f7c6e857702bbd5591a62f59f12b2a.tar.gz
buildroot-5a6f270344f7c6e857702bbd5591a62f59f12b2a.tar.bz2
giblib: fix giblib-config
[Peter: use a single sed invocation] Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/giblib/giblib.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/giblib/giblib.mk b/package/giblib/giblib.mk
index 751534c..75e21bb 100644
--- a/package/giblib/giblib.mk
+++ b/package/giblib/giblib.mk
@@ -13,4 +13,12 @@ GIBLIB_AUTORECONF_OPT = --install
GIBLIB_CONF_OPT = --with-imlib2-prefix=$(STAGING_DIR)/usr \
--with-imlib2-exec-prefix=$(STAGING_DIR)/usr
+define GIBLIB_STAGING_GIBLIB_CONFIG_FIXUP
+ $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+ -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+ $(STAGING_DIR)/usr/bin/giblib-config
+endef
+
+GIBLIB_POST_INSTALL_STAGING_HOOKS += GIBLIB_STAGING_GIBLIB_CONFIG_FIXUP
+
$(eval $(autotools-package))