Commit bdcbd9fb authored by Stefan Fröberg's avatar Stefan Fröberg Committed by Peter Korsgaard
Browse files

divine: fix divine-config



[Peter: use a single sed invocation]
Signed-off-by: default avatarStefan Fröberg <stefan.froberg@petroprogram.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent ca041bfe
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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))