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

index eab75efa4347e63cd82879c113a69869b0372ff2..01ba323d08a13a4a577c5dd95e7752fa138c1d51 100644 (file)
@@ -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))