neon: fix neon-config
authorStefan Fröberg <stefan.froberg@petroprogram.com>
Thu, 3 Jan 2013 12:09:05 +0000 (12:09 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 4 Jan 2013 21:45:57 +0000 (22:45 +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/neon/neon.mk

index c2e49497cbe4faea548dae7c2c91fbae67a0f051..56db6044bba1e4c6d877862f4eef44077b68ab78 100644 (file)
@@ -52,4 +52,12 @@ ifneq ($(BR2_HAVE_DEVFILES),y)
 NEON_POST_INSTALL_TARGET_HOOKS += NEON_REMOVE_CONFIG_SCRIPTS
 endif
 
+define NEON_STAGING_NEON_CONFIG_FIXUP
+       $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+               -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+               $(STAGING_DIR)/usr/bin/neon-config
+endef
+
+NEON_POST_INSTALL_STAGING_HOOKS += NEON_STAGING_NEON_CONFIG_FIXUP
+
 $(eval $(autotools-package))