imlib2: fix imlib2-config

Submitted by Stefan Fröberg on Jan. 3, 2013, 10:09 p.m.

Details

Message ID 1357250947-23296-3-git-send-email-stefan.froberg@petroprogram.com
State Accepted
Headers show

Commit Message

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 hide | download patch | download mbox

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