Patchwork neon: fix neon-config

login
register
mail settings
Submitter Stefan Fröberg
Date Jan. 3, 2013, 10:09 p.m.
Message ID <1357250947-23296-6-git-send-email-stefan.froberg@petroprogram.com>
Download mbox | patch
Permalink /patch/209328/
State Accepted
Headers show

Comments

Stefan Fröberg - Jan. 3, 2013, 10:09 p.m.
Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com>
---
 package/neon/neon.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/package/neon/neon.mk b/package/neon/neon.mk
index c2e4949..5e92853 100644
--- a/package/neon/neon.mk
+++ b/package/neon/neon.mk
@@ -52,4 +52,11 @@  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" $(STAGING_DIR)/usr/bin/neon-config
+	$(SED) "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))