summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-09-11 10:51:19 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-15 17:57:23 +0100
commitebd7baf5f151d5a3f4707b16e828b61e86fbcb40 (patch)
tree45d2e68409aa169d161a551e9e029d80381d31d7 /meta/recipes-graphics/fontconfig/fontconfig_2.17.1.bb
parent4c56cbbdee4b82f0e0f509546c85594bab72d16d (diff)
downloadpoky-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.bb70
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 @@
1SUMMARY = "Generic font configuration library"
2DESCRIPTION = "Fontconfig is a font configuration and customization library, which \
3does not depend on the X Window System. It is designed to locate \
4fonts within the system and select them according to requirements \
5specified by applications. \
6Fontconfig is not a rasterization library, nor does it impose a \
7particular rasterization library on the application. The X-specific \
8library 'Xft' uses fontconfig along with freetype to specify and \
9rasterize fonts."
10
11HOMEPAGE = "http://www.fontconfig.org"
12BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig"
13
14LICENSE = "MIT & MIT & PD"
15LIC_FILES_CHKSUM = "file://COPYING;md5=00252fd272bf2e722925613ad74cb6c7 \
16 file://src/fcfreetype.c;endline=23;md5=f7c0140c1b0387cf4cf45420b059847c \
17 "
18
19SECTION = "libs"
20
21DEPENDS = "expat freetype zlib gperf-native util-linux"
22
23SRC_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 "
27SRC_URI[sha256sum] = "9f5cae93f4fffc1fbc05ae99cdfc708cd60dfd6612ffc0512827025c026fa541"
28
29UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/fontconfig/fontconfig/-/tags"
30UPSTREAM_CHECK_REGEX = "releases/(?P<pver>.+)"
31
32do_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
37do_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
43do_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
49PACKAGES =+ "fontconfig-utils"
50FILES:${PN} =+ "${datadir}/xml/*"
51FILES:${PN}-dev += "${datadir}/gettext/*"
52FILES:fontconfig-utils = "${bindir}/* ${libexecdir}/*"
53
54# Work around past breakage in debian.bbclass
55RPROVIDES:fontconfig-utils = "libfontconfig-utils"
56RREPLACES:fontconfig-utils = "libfontconfig-utils"
57RCONFLICTS:fontconfig-utils = "libfontconfig-utils"
58DEBIAN_NOAUTONAME:fontconfig-utils = "1"
59
60inherit meson pkgconfig relative_symlinks gettext
61
62FONTCONFIG_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)
66FONTCONFIG_FONT_DIRS ?= "no"
67
68EXTRA_OEMESON = " -Ddoc=disabled -Ddefault-fonts-dirs=${datadir}/fonts -Dcache-dir=${FONTCONFIG_CACHE_DIR} -Dadditional-fonts-dirs=${FONTCONFIG_FONT_DIRS}"
69
70BBCLASSEXTEND = "native nativesdk"