divine: fix divine-config
authorStefan Fröberg <stefan.froberg@petroprogram.com>
Thu, 3 Jan 2013 12:09:00 +0000 (12:09 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 4 Jan 2013 21:29:17 +0000 (22:29 +0100)
[Peter: use a single sed invocation]
Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/divine/divine.mk

index 779322e55980779a4905111e6c27a19840da547e..7c7585f4f25341cc16912adeb5eb5e55c7bd2d56 100644 (file)
@@ -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))