blob: da20ab9b56a10f89dcdfbc6a0771681db5ca4883 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001HOMEPAGE = "http://www.x.org"
2BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
3
4SECTION = "x11/fonts"
5LICENSE = "MIT-X"
6
7DEPENDS = " encodings font-alias font-util-native mkfontdir-native mkfontscale-native"
8RDEPENDS_${PN} = "encodings font-util font-alias"
9
10XORG_PN = "${BPN}"
11INC_PR = "r2"
12
13
14SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.bz2"
15S = "${WORKDIR}/${XORG_PN}-${PV}"
16
17inherit autotools pkgconfig distro_features_check
18
19# The mkfontscale-native requires x11 in DISTRO_FEATURES
20REQUIRED_DISTRO_FEATURES = "x11"
Brad Bishop37a0e4d2017-12-04 01:01:44 -050021REQUIRED_DISTRO_FEATURES_class-native = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022
23EXTRA_OEMAKE += "FCCACHE=/bin/true UTIL_DIR=${STAGING_DIR_TARGET}\$\(MAPFILES_PATH\)"
24
25do_install_append() {
26 find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f
27 find ${D}${libdir}/X11/fonts -type f -name fonts.scale | xargs rm -f
28 find ${D}${datadir}/fonts/X11 -type f -name fonts.dir | xargs rm -f
29 find ${D}${datadir}/fonts/X11 -type f -name fonts.scale | xargs rm -f
30}
31
32FILES_${PN} += " ${libdir}/X11/fonts ${datadir}"
33
34pkg_postinst_${PN} () {
35 for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
36 mkfontdir $fontdir
37 mkfontscale $fontdir
38 done
39 for fontdir in `find $D/usr/share/fonts/X11 -type d`; do
40 mkfontdir $fontdir
41 mkfontscale $fontdir
42 done
43}