blob: 7ca5c76a6604fe715707c18a5929621cebf01982 [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
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007DEPENDS = " encodings font-alias font-util-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008RDEPENDS_${PN} = "encodings font-util font-alias"
9
10XORG_PN = "${BPN}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.bz2"
13S = "${WORKDIR}/${XORG_PN}-${PV}"
14
Brad Bishop6dbb3162019-11-25 09:41:34 -050015inherit autotools pkgconfig features_check
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
17# The mkfontscale-native requires x11 in DISTRO_FEATURES
18REQUIRED_DISTRO_FEATURES = "x11"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
20EXTRA_OEMAKE += "FCCACHE=/bin/true UTIL_DIR=${STAGING_DIR_TARGET}\$\(MAPFILES_PATH\)"
21
22do_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.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.scale | xargs rm -f
27}
28
29FILES_${PN} += " ${libdir}/X11/fonts ${datadir}"
30
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032pkg_postinst_${PN} () {
33 for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
34 mkfontdir $fontdir
35 mkfontscale $fontdir
36 done
37 for fontdir in `find $D/usr/share/fonts/X11 -type d`; do
38 mkfontdir $fontdir
39 mkfontscale $fontdir
40 done
41}