blob: 1fabe2e29ec3d2d8c257245ddc3cc749dafd1ba8 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Terminus fonts packages (console and X11)"
2DESCRIPTION = "Terminus Font is a clean, fixed width bitmap font, designed for \
3 long (8 and more hours per day) work with computers."
4HOMEPAGE = "http://terminus-font.sourceforge.net/"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005SECTION = "fonts"
6
7LICENSE = "OFL-1.1"
Andrew Geissler72956ed2021-01-08 16:11:14 -06008LIC_FILES_CHKSUM = "file://OFL.TXT;md5=f57e6cca943dbc6ef83dc14f1855bdcc"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05009
Brad Bishopd7bf8c12018-02-25 22:55:05 -050010DEPENDS = "hostperl-runtime-native gzip-native bdftopcf-native"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011
Patrick Williams169d7bc2024-01-05 11:33:25 -060012SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
13 file://use-no-name-option-for-gzip.patch \
14 "
Andrew Geissler72956ed2021-01-08 16:11:14 -060015SRC_URI[md5sum] = "1b6acbd221957e33c8a792ebfaf3a659"
16SRC_URI[sha256sum] = "d961c1b781627bf417f9b340693d64fc219e0113ad3a3af1a3424c7aa373ef79"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050017
18inherit allarch fontcache
19
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021PACKAGECONFIG[x11] = ""
22
23# Don't use font cache mecanism for console packages
24FONT_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '${PN}-pcf', '', d)}"
25
26# Hand made configure script. Don't need oe_runconf
27do_configure() {
28 chmod +x ${S}/configure
29 ${S}/configure --prefix=${prefix} \
30 --psfdir=${datadir}/consolefonts \
31 --acmdir=${datadir}/consoletrans \
32 --x11dir=${datadir}/fonts/terminus
33}
34
35do_compile() {
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050036 oe_runmake DESTDIR=${D} psf ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'pcf', '', d)}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050037}
38
39do_install() {
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050040 oe_runmake DESTDIR=${D} install-psf ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'install-pcf', '', d)}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050041}
42
43PACKAGES += "${PN}-consolefonts ${PN}-consoletrans ${PN}-pcf"
Patrick Williams213cb262021-08-07 19:21:33 -050044FILES:${PN}-consolefonts = "${datadir}/consolefonts"
45FILES:${PN}-consoletrans = "${datadir}/consoletrans"
46FILES:${PN}-pcf = "${datadir}/fonts/terminus"