Patchwork imlib2: fix imlib2-config

login
register
mail settings
Submitter Stefan Fröberg
Date Jan. 3, 2013, 10:09 p.m.
Message ID <1357250947-23296-3-git-send-email-stefan.froberg@petroprogram.com>
Download mbox | patch
Permalink /patch/209323/
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/imlib2/imlib2.mk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/package/imlib2/imlib2.mk b/package/imlib2/imlib2.mk
index fa0f578..5fad070 100644
--- a/package/imlib2/imlib2.mk
+++ b/package/imlib2/imlib2.mk
@@ -57,6 +57,8 @@  endif
 
 # drop -L<dir> from linker flags
 define IMLIB2_FIXUP_IMLIB2_CONFIG
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/imlib2-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/imlib2-config
 	$(SED) 's/-L[^ ]*//g' \
 		$(STAGING_DIR)/usr/bin/imlib2-config
 endef