172956edaSAndrew GeisslerSUMMARY = "Terminus fonts packages (console and X11)" 272956edaSAndrew GeisslerDESCRIPTION = "Terminus Font is a clean, fixed width bitmap font, designed for \ 372956edaSAndrew Geissler long (8 and more hours per day) work with computers." 472956edaSAndrew GeisslerHOMEPAGE = "http://terminus-font.sourceforge.net/" 572956edaSAndrew GeisslerSECTION = "fonts" 672956edaSAndrew Geissler 772956edaSAndrew GeisslerLICENSE = "OFL-1.1" 872956edaSAndrew GeisslerLIC_FILES_CHKSUM = "file://OFL.TXT;md5=f57e6cca943dbc6ef83dc14f1855bdcc" 972956edaSAndrew Geissler 1072956edaSAndrew GeisslerDEPENDS = "hostperl-runtime-native gzip-native bdftopcf-native" 1172956edaSAndrew Geissler 12*169d7bccSPatrick WilliamsSRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ 13*169d7bccSPatrick Williams file://use-no-name-option-for-gzip.patch \ 14*169d7bccSPatrick Williams " 1572956edaSAndrew GeisslerSRC_URI[md5sum] = "1b6acbd221957e33c8a792ebfaf3a659" 1672956edaSAndrew GeisslerSRC_URI[sha256sum] = "d961c1b781627bf417f9b340693d64fc219e0113ad3a3af1a3424c7aa373ef79" 1772956edaSAndrew Geissler 1872956edaSAndrew Geisslerinherit allarch fontcache 1972956edaSAndrew Geissler 2072956edaSAndrew GeisslerPACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" 2172956edaSAndrew GeisslerPACKAGECONFIG[x11] = "" 2272956edaSAndrew Geissler 2372956edaSAndrew Geissler# Don't use font cache mecanism for console packages 2472956edaSAndrew GeisslerFONT_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '${PN}-pcf', '', d)}" 2572956edaSAndrew Geissler 2672956edaSAndrew Geissler# Hand made configure script. Don't need oe_runconf 2772956edaSAndrew Geisslerdo_configure() { 2872956edaSAndrew Geissler chmod +x ${S}/configure 2972956edaSAndrew Geissler ${S}/configure --prefix=${prefix} \ 3072956edaSAndrew Geissler --psfdir=${datadir}/consolefonts \ 3172956edaSAndrew Geissler --acmdir=${datadir}/consoletrans \ 3272956edaSAndrew Geissler --x11dir=${datadir}/fonts/terminus 3372956edaSAndrew Geissler} 3472956edaSAndrew Geissler 3572956edaSAndrew Geisslerdo_compile() { 3672956edaSAndrew Geissler oe_runmake DESTDIR=${D} psf ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'pcf', '', d)} 3772956edaSAndrew Geissler} 3872956edaSAndrew Geissler 3972956edaSAndrew Geisslerdo_install() { 4072956edaSAndrew Geissler oe_runmake DESTDIR=${D} install-psf ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'install-pcf', '', d)} 4172956edaSAndrew Geissler} 4272956edaSAndrew Geissler 4372956edaSAndrew GeisslerPACKAGES += "${PN}-consolefonts ${PN}-consoletrans ${PN}-pcf" 44213cb269SPatrick WilliamsFILES:${PN}-consolefonts = "${datadir}/consolefonts" 45213cb269SPatrick WilliamsFILES:${PN}-consoletrans = "${datadir}/consoletrans" 46213cb269SPatrick WilliamsFILES:${PN}-pcf = "${datadir}/fonts/terminus" 47