blob: edf7cf76421904cd64ecc2b7b4735cc155b8a8b9 [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
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050012SRC_URI_EXT = "bz2"
13SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.${SRC_URI_EXT}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014S = "${WORKDIR}/${XORG_PN}-${PV}"
15
Brad Bishop6dbb3162019-11-25 09:41:34 -050016inherit autotools pkgconfig features_check
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017
18# The mkfontscale-native requires x11 in DISTRO_FEATURES
19REQUIRED_DISTRO_FEATURES = "x11"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020
21EXTRA_OEMAKE += "FCCACHE=/bin/true UTIL_DIR=${STAGING_DIR_TARGET}\$\(MAPFILES_PATH\)"
22
Patrick Williams213cb262021-08-07 19:21:33 -050023do_install:append() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024 find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f
25 find ${D}${libdir}/X11/fonts -type f -name fonts.scale | xargs rm -f
26 find ${D}${datadir}/fonts/X11 -type f -name fonts.dir | xargs rm -f
27 find ${D}${datadir}/fonts/X11 -type f -name fonts.scale | xargs rm -f
28}
29
Patrick Williams213cb262021-08-07 19:21:33 -050030FILES:${PN} += " ${libdir}/X11/fonts ${datadir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031
Brad Bishop6e60e8b2018-02-01 10:27:11 -050032PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native"
Patrick Williams213cb262021-08-07 19:21:33 -050033pkg_postinst:${PN} () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050034 for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
35 mkfontdir $fontdir
36 mkfontscale $fontdir
37 done
38 for fontdir in `find $D/usr/share/fonts/X11 -type d`; do
39 mkfontdir $fontdir
40 mkfontscale $fontdir
41 done
42}