blob: 2df23efed4aae172efe6b150a6ec476cca746295 [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"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00005LICENSE = "MIT"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007DEPENDS = " encodings font-alias font-util-native"
Patrick Williams213cb262021-08-07 19:21:33 -05008RDEPENDS:${PN} = "encodings font-util font-alias"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
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
Patrick Williams213cb262021-08-07 19:21:33 -050022do_install:append() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023 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
Patrick Williams213cb262021-08-07 19:21:33 -050029FILES:${PN} += " ${libdir}/X11/fonts ${datadir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native"
Patrick Williams213cb262021-08-07 19:21:33 -050032pkg_postinst:${PN} () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033 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}