Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Terminus fonts packages (console and X11)" |
| 2 | DESCRIPTION = "Terminus Font is a clean, fixed width bitmap font, designed for \ |
| 3 | long (8 and more hours per day) work with computers." |
| 4 | HOMEPAGE = "http://terminus-font.sourceforge.net/" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | SECTION = "fonts" |
| 6 | |
| 7 | LICENSE = "OFL-1.1" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://OFL.TXT;md5=f57e6cca943dbc6ef83dc14f1855bdcc" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 9 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 10 | DEPENDS = "hostperl-runtime-native gzip-native bdftopcf-native" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 11 | |
| 12 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 13 | SRC_URI[md5sum] = "1b6acbd221957e33c8a792ebfaf3a659" |
| 14 | SRC_URI[sha256sum] = "d961c1b781627bf417f9b340693d64fc219e0113ad3a3af1a3424c7aa373ef79" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | |
| 16 | inherit allarch fontcache |
| 17 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | PACKAGECONFIG[x11] = "" |
| 20 | |
| 21 | # Don't use font cache mecanism for console packages |
| 22 | FONT_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '${PN}-pcf', '', d)}" |
| 23 | |
| 24 | # Hand made configure script. Don't need oe_runconf |
| 25 | do_configure() { |
| 26 | chmod +x ${S}/configure |
| 27 | ${S}/configure --prefix=${prefix} \ |
| 28 | --psfdir=${datadir}/consolefonts \ |
| 29 | --acmdir=${datadir}/consoletrans \ |
| 30 | --x11dir=${datadir}/fonts/terminus |
| 31 | } |
| 32 | |
| 33 | do_compile() { |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 34 | oe_runmake DESTDIR=${D} psf ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'pcf', '', d)} |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | do_install() { |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 38 | oe_runmake DESTDIR=${D} install-psf ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'install-pcf', '', d)} |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | PACKAGES += "${PN}-consolefonts ${PN}-consoletrans ${PN}-pcf" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | FILES:${PN}-consolefonts = "${datadir}/consolefonts" |
| 43 | FILES:${PN}-consoletrans = "${datadir}/consoletrans" |
| 44 | FILES:${PN}-pcf = "${datadir}/fonts/terminus" |