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

index fa0f57803a8a41ca75762231ada947877c3e256d..c7029aeb6fd2e0dd4c33ffe1a0c267c796cfa205 100644 (file)
@@ -57,7 +57,9 @@ endif
 
 # drop -L<dir> from linker flags
 define IMLIB2_FIXUP_IMLIB2_CONFIG
-       $(SED) 's/-L[^ ]*//g' \
+       $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+               -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+               -e  's/-L[^ ]*//g' \
                $(STAGING_DIR)/usr/bin/imlib2-config
 endef