directfb: fixup directfb-config for correctness
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 9 Feb 2011 18:22:39 +0000 (15:22 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 9 Feb 2011 21:51:30 +0000 (22:51 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/directfb/directfb.mk

index 36b1c0a90f488081e10f7e940a9911e10801a2ef..98590cc71636e5f47639192b43d324d990b0a5d5 100644 (file)
@@ -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))