summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-font/xorg-font-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-font/xorg-font-common.inc')
-rw-r--r--meta/recipes-graphics/xorg-font/xorg-font-common.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/recipes-graphics/xorg-font/xorg-font-common.inc b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
index 7ca5c76a66..edf7cf7642 100644
--- a/meta/recipes-graphics/xorg-font/xorg-font-common.inc
+++ b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
@@ -2,14 +2,15 @@ HOMEPAGE = "http://www.x.org"
2BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" 2BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
3 3
4SECTION = "x11/fonts" 4SECTION = "x11/fonts"
5LICENSE = "MIT-X" 5LICENSE = "MIT"
6 6
7DEPENDS = " encodings font-alias font-util-native" 7DEPENDS = " encodings font-alias font-util-native"
8RDEPENDS_${PN} = "encodings font-util font-alias" 8RDEPENDS:${PN} = "encodings font-util font-alias"
9 9
10XORG_PN = "${BPN}" 10XORG_PN = "${BPN}"
11 11
12SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.bz2" 12SRC_URI_EXT = "bz2"
13SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.${SRC_URI_EXT}"
13S = "${WORKDIR}/${XORG_PN}-${PV}" 14S = "${WORKDIR}/${XORG_PN}-${PV}"
14 15
15inherit autotools pkgconfig features_check 16inherit autotools pkgconfig features_check
@@ -19,17 +20,17 @@ REQUIRED_DISTRO_FEATURES = "x11"
19 20
20EXTRA_OEMAKE += "FCCACHE=/bin/true UTIL_DIR=${STAGING_DIR_TARGET}\$\(MAPFILES_PATH\)" 21EXTRA_OEMAKE += "FCCACHE=/bin/true UTIL_DIR=${STAGING_DIR_TARGET}\$\(MAPFILES_PATH\)"
21 22
22do_install_append() { 23do_install:append() {
23 find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f 24 find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f
24 find ${D}${libdir}/X11/fonts -type f -name fonts.scale | xargs rm -f 25 find ${D}${libdir}/X11/fonts -type f -name fonts.scale | xargs rm -f
25 find ${D}${datadir}/fonts/X11 -type f -name fonts.dir | xargs rm -f 26 find ${D}${datadir}/fonts/X11 -type f -name fonts.dir | xargs rm -f
26 find ${D}${datadir}/fonts/X11 -type f -name fonts.scale | xargs rm -f 27 find ${D}${datadir}/fonts/X11 -type f -name fonts.scale | xargs rm -f
27} 28}
28 29
29FILES_${PN} += " ${libdir}/X11/fonts ${datadir}" 30FILES:${PN} += " ${libdir}/X11/fonts ${datadir}"
30 31
31PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native" 32PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native"
32pkg_postinst_${PN} () { 33pkg_postinst:${PN} () {
33 for fontdir in `find $D/usr/lib/X11/fonts -type d`; do 34 for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
34 mkfontdir $fontdir 35 mkfontdir $fontdir
35 mkfontscale $fontdir 36 mkfontscale $fontdir