From b5b60cf5c1a2d822e1d22bf514c9c392d55d0799 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Wed, 9 Feb 2011 15:22:39 -0300 Subject: directfb: fixup directfb-config for correctness Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- package/directfb/directfb.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'package') diff --git a/package/directfb/directfb.mk b/package/directfb/directfb.mk index 36b1c0a90..98590cc71 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)) -- cgit v1.2.3