summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorStefan Fröberg <stefan.froberg@petroprogram.com>2013-01-03 12:09:00 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-01-04 22:29:17 +0100
commitbdcbd9fb3dedc69c3b6a6742701ff204dd9fba0a (patch)
treefed6e513688004db32f07f831e826d5db9b64aa9 /package
parentca041bfe53752eee09445eb018fe6093c2f0f462 (diff)
downloadbuildroot-novena-bdcbd9fb3dedc69c3b6a6742701ff204dd9fba0a.tar.gz
buildroot-novena-bdcbd9fb3dedc69c3b6a6742701ff204dd9fba0a.zip
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>
Diffstat (limited to 'package')
-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 779322e55..7c7585f4f 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))