1HOMEPAGE = "http://www.x.org" 2BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" 3 4SECTION = "x11/fonts" 5LICENSE = "MIT" 6 7DEPENDS = " encodings font-alias font-util-native" 8RDEPENDS:${PN} = "encodings font-util font-alias" 9 10XORG_PN = "${BPN}" 11 12SRC_URI_EXT = "bz2" 13SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.${SRC_URI_EXT}" 14S = "${WORKDIR}/${XORG_PN}-${PV}" 15 16inherit autotools pkgconfig features_check 17 18# The mkfontscale-native requires x11 in DISTRO_FEATURES 19REQUIRED_DISTRO_FEATURES = "x11" 20 21EXTRA_OEMAKE += "FCCACHE=/bin/true UTIL_DIR=${STAGING_DIR_TARGET}\$\(MAPFILES_PATH\)" 22 23do_install:append() { 24 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 30FILES:${PN} += " ${libdir}/X11/fonts ${datadir}" 31 32PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native" 33pkg_postinst:${PN} () { 34 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} 43