summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-02-09 18:22:39 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-02-09 21:51:30 (GMT)
commitb5b60cf5c1a2d822e1d22bf514c9c392d55d0799 (patch)
treedb2f082b99755a399d93729852f3af8085b93e54
parent68bb70ce5a1896282159c44ef9f99401f76806d1 (diff)
downloadbuildroot-b5b60cf5c1a2d822e1d22bf514c9c392d55d0799.tar.gz
buildroot-b5b60cf5c1a2d822e1d22bf514c9c392d55d0799.tar.bz2
directfb: fixup directfb-config for correctness
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/directfb/directfb.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/directfb/directfb.mk b/package/directfb/directfb.mk
index 36b1c0a..98590cc 100644
--- a/package/directfb/directfb.mk
+++ b/package/directfb/directfb.mk
@@ -137,6 +137,14 @@ HOST_DIRECTFB_BUILD_CMDS = \
HOST_DIRECTFB_INSTALL_CMDS = \
$(INSTALL) -m 0755 $(@D)/tools/directfb-csource $(HOST_DIR)/usr/bin
+define DIRECTFB_STAGING_CONFIG_FIXUP
+ $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+ -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+ $(STAGING_DIR)/usr/bin/directfb-config
+endef
+
+DIRECTFB_POST_INSTALL_STAGING_HOOKS += DIRECTFB_STAGING_CONFIG_FIXUP
+
$(eval $(call AUTOTARGETS,package,directfb))
$(eval $(call AUTOTARGETS,package,directfb,host))