diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2025-09-11 10:51:19 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-15 17:57:23 +0100 |
| commit | ebd7baf5f151d5a3f4707b16e828b61e86fbcb40 (patch) | |
| tree | 45d2e68409aa169d161a551e9e029d80381d31d7 /meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb | |
| parent | 4c56cbbdee4b82f0e0f509546c85594bab72d16d (diff) | |
| download | poky-ebd7baf5f151d5a3f4707b16e828b61e86fbcb40.tar.gz | |
fontconfig: update 2.15.0 -> 2.17.1
Tarballs have relocated to gitlab.
Convert to meson.
License-update: trim the code, keep only the license
(there used to be a second copyright notice from a different author but
with mostly same MIT-ish content)
Add a backport to fix musl builds.
(From OE-Core rev: 17b146eb9584f71b62a9b8363a1d4fa91e8a24a8)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb')
| -rw-r--r-- | meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb new file mode 100644 index 0000000000..17d2f87dd6 --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | SUMMARY = "Generic font configuration library" | ||
| 2 | DESCRIPTION = "Fontconfig is a font configuration and customization library, which \ | ||
| 3 | does not depend on the X Window System. It is designed to locate \ | ||
| 4 | fonts within the system and select them according to requirements \ | ||
| 5 | specified by applications. \ | ||
| 6 | Fontconfig is not a rasterization library, nor does it impose a \ | ||
| 7 | particular rasterization library on the application. The X-specific \ | ||
| 8 | library 'Xft' uses fontconfig along with freetype to specify and \ | ||
| 9 | rasterize fonts." | ||
| 10 | |||
| 11 | HOMEPAGE = "http://www.fontconfig.org" | ||
| 12 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig" | ||
| 13 | |||
| 14 | LICENSE = "MIT & MIT & PD" | ||
| 15 | LIC_FILES_CHKSUM = "file://COPYING;md5=00252fd272bf2e722925613ad74cb6c7 \ | ||
| 16 | file://src/fcfreetype.c;endline=23;md5=f7c0140c1b0387cf4cf45420b059847c \ | ||
| 17 | " | ||
| 18 | |||
| 19 | SECTION = "libs" | ||
| 20 | |||
| 21 | DEPENDS = "expat freetype zlib gperf-native util-linux" | ||
| 22 | |||
| 23 | SRC_URI = "https://gitlab.freedesktop.org/api/v4/projects/890/packages/generic/fontconfig/${PV}/fontconfig-${PV}.tar.xz \ | ||
| 24 | file://revert-static-pkgconfig.patch \ | ||
| 25 | file://musl-fix.patch \ | ||
| 26 | " | ||
| 27 | SRC_URI[sha256sum] = "9f5cae93f4fffc1fbc05ae99cdfc708cd60dfd6612ffc0512827025c026fa541" | ||
| 28 | |||
| 29 | UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/fontconfig/fontconfig/-/tags" | ||
| 30 | UPSTREAM_CHECK_REGEX = "releases/(?P<pver>.+)" | ||
| 31 | |||
| 32 | do_configure:prepend() { | ||
| 33 | # work around https://bugs.freedesktop.org/show_bug.cgi?id=101280 | ||
| 34 | rm -f ${S}/src/fcobjshash.h ${S}/src/fcobjshash.gperf | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install:append:class-target() { | ||
| 38 | # duplicate fc-cache for postinstall script | ||
| 39 | mkdir -p ${D}${libexecdir} | ||
| 40 | ln ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache | ||
| 41 | } | ||
| 42 | |||
| 43 | do_install:append:class-nativesdk() { | ||
| 44 | # duplicate fc-cache for postinstall script | ||
| 45 | mkdir -p ${D}${libexecdir} | ||
| 46 | ln ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache | ||
| 47 | } | ||
| 48 | |||
| 49 | PACKAGES =+ "fontconfig-utils" | ||
| 50 | FILES:${PN} =+ "${datadir}/xml/*" | ||
| 51 | FILES:${PN}-dev += "${datadir}/gettext/*" | ||
| 52 | FILES:fontconfig-utils = "${bindir}/* ${libexecdir}/*" | ||
| 53 | |||
| 54 | # Work around past breakage in debian.bbclass | ||
| 55 | RPROVIDES:fontconfig-utils = "libfontconfig-utils" | ||
| 56 | RREPLACES:fontconfig-utils = "libfontconfig-utils" | ||
| 57 | RCONFLICTS:fontconfig-utils = "libfontconfig-utils" | ||
| 58 | DEBIAN_NOAUTONAME:fontconfig-utils = "1" | ||
| 59 | |||
| 60 | inherit meson pkgconfig relative_symlinks gettext | ||
| 61 | |||
| 62 | FONTCONFIG_CACHE_DIR ?= "${localstatedir}/cache/fontconfig" | ||
| 63 | |||
| 64 | # comma separated list of additional directories | ||
| 65 | # /usr/share/fonts is already included by default (you can change it with --with-default-fonts) | ||
| 66 | FONTCONFIG_FONT_DIRS ?= "no" | ||
| 67 | |||
| 68 | EXTRA_OEMESON = " -Ddoc=disabled -Ddefault-fonts-dirs=${datadir}/fonts -Dcache-dir=${FONTCONFIG_CACHE_DIR} -Dadditional-fonts-dirs=${FONTCONFIG_FONT_DIRS}" | ||
| 69 | |||
| 70 | BBCLASSEXTEND = "native nativesdk" | ||
