blob: dc263fda4bf8b583925d0935e80acaa282d5c26e [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/"
5AUTHOR = "Dimitar Zhekov"
6SECTION = "fonts"
7
8LICENSE = "OFL-1.1"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05009LIC_FILES_CHKSUM = "file://OFL.TXT;md5=9b226721636fde0db38ea656c2aae4bf"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010
Brad Bishopd7bf8c12018-02-25 22:55:05 -050011DEPENDS = "hostperl-runtime-native gzip-native bdftopcf-native"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012
13SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050014SRC_URI[md5sum] = "a2cb88f6cf174f3d07de93b91e115a8d"
15SRC_URI[sha256sum] = "34799c8dd5cec7db8016b4a615820dfb43b395575afbb24fc17ee19c869c94af"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050016
17inherit allarch fontcache
18
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020PACKAGECONFIG[x11] = ""
21
22# Don't use font cache mecanism for console packages
23FONT_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '${PN}-pcf', '', d)}"
24
25# Hand made configure script. Don't need oe_runconf
26do_configure() {
27 chmod +x ${S}/configure
28 ${S}/configure --prefix=${prefix} \
29 --psfdir=${datadir}/consolefonts \
30 --acmdir=${datadir}/consoletrans \
31 --x11dir=${datadir}/fonts/terminus
32}
33
34do_compile() {
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050035 oe_runmake DESTDIR=${D} psf ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'pcf', '', d)}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050036}
37
38do_install() {
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050039 oe_runmake DESTDIR=${D} install-psf ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'install-pcf', '', d)}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050040}
41
42PACKAGES += "${PN}-consolefonts ${PN}-consoletrans ${PN}-pcf"
43FILES_${PN}-consolefonts = "${datadir}/consolefonts"
44FILES_${PN}-consoletrans = "${datadir}/consoletrans"
45FILES_${PN}-pcf = "${datadir}/fonts/terminus"