[Buildroot] [PATCH] divine: fix divine-config

Stefan Fröberg stefan.froberg at petroprogram.com
Thu Jan 3 22:09:00 UTC 2013


Signed-off-by: Stefan Fröberg <stefan.froberg at petroprogram.com>
---
 package/divine/divine.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/package/divine/divine.mk b/package/divine/divine.mk
index 779322e..872d135 100644
--- a/package/divine/divine.mk
+++ b/package/divine/divine.mk
@@ -10,4 +10,11 @@ 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" $(STAGING_DIR)/usr/bin/divine-config
+	$(SED) "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))
-- 
1.7.7.6



More information about the buildroot mailing list