summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Fröberg <stefan.froberg@petroprogram.com>2013-01-03 12:09:00 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-01-04 21:29:17 (GMT)
commitbdcbd9fb3dedc69c3b6a6742701ff204dd9fba0a (patch)
treefed6e513688004db32f07f831e826d5db9b64aa9
parentca041bfe53752eee09445eb018fe6093c2f0f462 (diff)
downloadbuildroot-bdcbd9fb3dedc69c3b6a6742701ff204dd9fba0a.tar.gz
buildroot-bdcbd9fb3dedc69c3b6a6742701ff204dd9fba0a.tar.bz2
divine: fix divine-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/divine/divine.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/divine/divine.mk b/package/divine/divine.mk
index 779322e..7c7585f 100644
--- a/package/divine/divine.mk
+++ b/package/divine/divine.mk
@@ -10,4 +10,12 @@ DIVINE_SOURCE = DiVine-$(DIVINE_VERSION).tar.gz
DIVINE_INSTALL_STAGING = YES
DIVINE_DEPENDENCIES = directfb
+define DIVINE_STAGING_DIVINE_CONFIG_FIXUP
+ $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+ -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+ $(STAGING_DIR)/usr/bin/divine-config
+endef
+
+DIVINE_POST_INSTALL_STAGING_HOOKS += DIVINE_STAGING_DIVINE_CONFIG_FIXUP
+
$(eval $(autotools-package))