diff options
| author | Matthieu CRAPET <Matthieu.CRAPET@ingenico.com> | 2014-03-20 12:11:44 +0100 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-03-26 21:58:00 +0100 |
| commit | a9a40bc88d19f25452ff779942392dfe45ee0437 (patch) | |
| tree | c3f5a3a3b3abb69a8d4a05446064ee0f10201406 | |
| parent | 8f841276d47ddcd508de0097081ad500df06cac1 (diff) | |
| download | meta-openembedded-a9a40bc88d19f25452ff779942392dfe45ee0437.tar.gz | |
terminus-font: add new recipe for version 4.38
This is a dual recipe, it provides:
- console fonts (PSF v1 & v2 formats)
- X11 fonts (PCF format)
X11 font are generated when DISTRO_FEATURES contains 'x11'.
Use PACKAGECONFIG to configure.
Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/terminus-font/terminus-font_4.38.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/terminus-font/terminus-font_4.38.bb b/meta-oe/recipes-graphics/terminus-font/terminus-font_4.38.bb new file mode 100644 index 0000000000..a6bef1002a --- /dev/null +++ b/meta-oe/recipes-graphics/terminus-font/terminus-font_4.38.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 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/" | ||
| 5 | AUTHOR = "Dimitar Zhekov" | ||
| 6 | SECTION = "fonts" | ||
| 7 | |||
| 8 | LICENSE = "OFL-1.1" | ||
| 9 | LIC_FILES_CHKSUM = "file://OFL.TXT;md5=9cadb26f4c5c005618c5ae74f041ec54" | ||
| 10 | |||
| 11 | DEPENDS = "perl-native-runtime gzip-native" | ||
| 12 | |||
| 13 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" | ||
| 14 | SRC_URI[md5sum] = "a8e792fe6e84c86ed2b6ed3e2a12ba66" | ||
| 15 | SRC_URI[sha256sum] = "f6f4876a4dabe6a37c270c20bb9e141e38fb50e0bba200e1b9d0470e5eed97b7" | ||
| 16 | |||
| 17 | inherit allarch fontcache | ||
| 18 | |||
| 19 | PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | ||
| 20 | PACKAGECONFIG[x11] = "" | ||
| 21 | |||
| 22 | # Don't use font cache mecanism for console packages | ||
| 23 | FONT_PACKAGES = "${@base_contains('PACKAGECONFIG', 'x11', '${PN}-pcf', '', d)}" | ||
| 24 | |||
| 25 | # Hand made configure script. Don't need oe_runconf | ||
| 26 | do_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 | |||
| 34 | do_compile() { | ||
| 35 | oe_runmake DESTDIR=${D} psf txt ${@base_contains('PACKAGECONFIG', 'x11', 'pcf', '', d)} | ||
| 36 | } | ||
| 37 | |||
| 38 | do_install() { | ||
| 39 | oe_runmake DESTDIR=${D} install-psf install-acm ${@base_contains('PACKAGECONFIG', 'x11', 'install-pcf', '', d)} | ||
| 40 | } | ||
| 41 | |||
| 42 | PACKAGES += "${PN}-consolefonts ${PN}-consoletrans ${PN}-pcf" | ||
| 43 | FILES_${PN}-consolefonts = "${datadir}/consolefonts" | ||
| 44 | FILES_${PN}-consoletrans = "${datadir}/consoletrans" | ||
| 45 | FILES_${PN}-pcf = "${datadir}/fonts/terminus" | ||
