summaryrefslogtreecommitdiffstats
path: root/package/x11r7
diff options
context:
space:
mode:
authorStefan Fröberg <stefan.froberg@petroprogram.com>2013-01-03 12:09:07 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-01-04 22:47:51 +0100
commit1a1009931f8f126087c0c4c013af63ca2037014a (patch)
tree980580680cc33c25874b3996b16fa98b1fbe0ee9 /package/x11r7
parent89e642ff4807268eed15873a03af7c1d07936f6f (diff)
downloadbuildroot-novena-1a1009931f8f126087c0c4c013af63ca2037014a.tar.gz
buildroot-novena-1a1009931f8f126087c0c4c013af63ca2037014a.zip
xlib_libXft: fix xft-config
[Peter: use a single sed invocation] Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/x11r7')
-rw-r--r--package/x11r7/xlib_libXft/xlib_libXft.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/x11r7/xlib_libXft/xlib_libXft.mk b/package/x11r7/xlib_libXft/xlib_libXft.mk
index eab75efa4..01ba323d0 100644
--- a/package/x11r7/xlib_libXft/xlib_libXft.mk
+++ b/package/x11r7/xlib_libXft/xlib_libXft.mk
@@ -11,4 +11,12 @@ XLIB_LIBXFT_AUTORECONF = YES
XLIB_LIBXFT_INSTALL_STAGING = YES
XLIB_LIBXFT_DEPENDENCIES = fontconfig freetype xlib_libX11 xlib_libXext xlib_libXrender xproto_xproto
+define XLIB_LIBXFT_STAGING_XLIB_LIBXFT_CONFIG_FIXUP
+ $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+ -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+ $(STAGING_DIR)/usr/bin/xft-config
+endef
+
+XLIB_LIBXFT_POST_INSTALL_STAGING_HOOKS += XLIB_LIBXFT_STAGING_XLIB_LIBXFT_CONFIG_FIXUP
+
$(eval $(autotools-package))