summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunqian Gordon Xu <xjqian@gmail.com>2008-09-21 06:08:46 +0000
committerJunqian Gordon Xu <xjqian@gmail.com>2008-09-21 06:08:46 +0000
commit3e272bd4dfa5b24f46f555edf344b1bbe919889e (patch)
treef7390f7b6093a11c387344ec741c702d045268c1
parent81da1a8e00f4bee6c0876316f2cc39e19434bcaf (diff)
xorg-font-common.inc: Fix xorg fonts referring host path. bug# 4570
-rw-r--r--packages/xorg-font/xorg-font-common.inc6
1 files changed, 6 insertions, 0 deletions
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