diff options
Diffstat (limited to 'meta/classes/fontcache.bbclass')
-rw-r--r-- | meta/classes/fontcache.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass index 325bcae58f..afd3fd2252 100644 --- a/meta/classes/fontcache.bbclass +++ b/meta/classes/fontcache.bbclass | |||
@@ -7,6 +7,7 @@ DEPENDS += "qemu-native" | |||
7 | inherit qemu | 7 | inherit qemu |
8 | 8 | ||
9 | FONT_PACKAGES ??= "${PN}" | 9 | FONT_PACKAGES ??= "${PN}" |
10 | FONT_EXTRA_RDEPENDS ?= "fontconfig-utils" | ||
10 | 11 | ||
11 | fontcache_common() { | 12 | fontcache_common() { |
12 | if [ "x$D" != "x" ] ; then | 13 | if [ "x$D" != "x" ] ; then |
@@ -19,8 +20,11 @@ fi | |||
19 | 20 | ||
20 | python populate_packages_append() { | 21 | python populate_packages_append() { |
21 | font_pkgs = d.getVar('FONT_PACKAGES', True).split() | 22 | font_pkgs = d.getVar('FONT_PACKAGES', True).split() |
23 | deps = d.getVar("FONT_EXTRA_RDEPENDS", True) | ||
22 | 24 | ||
23 | for pkg in font_pkgs: | 25 | for pkg in font_pkgs: |
26 | if deps: d.appendVar('RDEPENDS_' + pkg, ' '+deps) | ||
27 | |||
24 | bb.note("adding fonts postinst and postrm scripts to %s" % pkg) | 28 | bb.note("adding fonts postinst and postrm scripts to %s" % pkg) |
25 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True) | 29 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True) |
26 | if not postinst: | 30 | if not postinst: |