Patchwork giblib: fix giblib-config

login
register
mail settings
Submitter Stefan Fröberg
Date Jan. 3, 2013, 10:09 p.m.
Message ID <1357250947-23296-2-git-send-email-stefan.froberg@petroprogram.com>
Download mbox | patch
Permalink /patch/209321/
State Accepted
Headers show

Comments

Stefan Fröberg - Jan. 3, 2013, 10:09 p.m.
Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com>
---
 package/giblib/giblib.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/package/giblib/giblib.mk b/package/giblib/giblib.mk
index 751534c..ed93b3d 100644
--- a/package/giblib/giblib.mk
+++ b/package/giblib/giblib.mk
@@ -13,4 +13,11 @@  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" $(STAGING_DIR)/usr/bin/giblib-config
+	$(SED) "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))