From 3e272bd4dfa5b24f46f555edf344b1bbe919889e Mon Sep 17 00:00:00 2001 From: Junqian Gordon Xu Date: Sun, 21 Sep 2008 06:08:46 +0000 Subject: xorg-font-common.inc: Fix xorg fonts referring host path. bug# 4570 --- packages/xorg-font/xorg-font-common.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages') diff --git a/packages/xorg-font/xorg-font-common.inc b/packages/xorg-font/xorg-font-common.inc index 09489b1cf8..429b9907c0 100644 --- a/packages/xorg-font/xorg-font-common.inc +++ b/packages/xorg-font/xorg-font-common.inc @@ -13,6 +13,12 @@ inherit autotools pkgconfig FILES_${PN} += " ${libdir}/X11/fonts" +do_configure_prepend() { + if [ -f "${S}"/configure.ac ] ; then + sed -i "s#^MAPFILES_PATH=.*#MAPFILES_PATH=\"${STAGING_DIR_TARGET}/\$(pkg-config --variable=mapdir fontutil)\"#g" "${S}"/configure.ac + fi +} + do_install_append() { find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f find ${D}${libdir}/X11/fonts -type f -name fonts.scale | xargs rm -f -- cgit v1.2.3