diff options
author | Daniel Engberg <diizzy@FreeBSD.org> | 2021-09-06 17:54:36 +0000 |
---|---|---|
committer | Daniel Engberg <diizzy@FreeBSD.org> | 2021-09-06 18:05:09 +0000 |
commit | 1215cfdc188e71f377e4274a7525f4afc2315ba8 (patch) | |
tree | b3c5bb3465a6f7e75178557470c30b5ea2f2b06d | |
parent | c7aa6ea8f75f5faf172b5d8c5daa4c2abf92d3b3 (diff) | |
download | ports-1215cfdc188e71f377e4274a7525f4afc2315ba8.tar.gz ports-1215cfdc188e71f377e4274a7525f4afc2315ba8.zip |
x11-fonts/fontconfig: Restore generation of font cache
Restore generation of cache prior to Meson switch
Upstream patch provided by John Hein
PR: 254963
Reported by: Piotr Smyrak
Tested by: Piotr Smyrak and John Hein
Approved by: arrowd (mentor)
Obtained from: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/296
Differential Revision: https://reviews.freebsd.org/D31602
-rw-r--r-- | x11-fonts/fontconfig/Makefile | 4 | ||||
-rw-r--r-- | x11-fonts/fontconfig/files/patch-fc-cache_meson.build | 10 | ||||
-rw-r--r-- | x11-fonts/fontconfig/files/patch-meson__options.txt | 8 |
3 files changed, 21 insertions, 1 deletions
diff --git a/x11-fonts/fontconfig/Makefile b/x11-fonts/fontconfig/Makefile index 9241ea59b6e0..8977dc2dabd8 100644 --- a/x11-fonts/fontconfig/Makefile +++ b/x11-fonts/fontconfig/Makefile @@ -26,6 +26,8 @@ SHEBANG_FILES= conf.d/link_confs.py \ fc-lang/fc-lang.py TEST_TARGET= test +SUB_FILES= pkg-install +SUB_LIST= PREFIX=${PREFIX} # Custom configuration variables FCDEFAULTFONTS= ${PREFIX}/share/fonts @@ -33,7 +35,7 @@ FCADDFONTS= ${LOCALBASE}/lib/X11/fonts # To avoid circular dependency rebuild of docs (including manpages) needs to be # disabled as they depend on textproc/docbook-utils which requires fontconfig -MESON_ARGS= -Ddefault_library=both -Ddoc=disabled +MESON_ARGS= -Ddefault_library=both -Ddoc=disabled -Dfc-cache=disabled PLIST_SUB= PREFERRED_HINTING=${PREFERRED_HINTING} PORTDOCS= fontconfig-user.html fontconfig-user.pdf fontconfig-user.txt diff --git a/x11-fonts/fontconfig/files/patch-fc-cache_meson.build b/x11-fonts/fontconfig/files/patch-fc-cache_meson.build new file mode 100644 index 000000000000..cdb981f4abee --- /dev/null +++ b/x11-fonts/fontconfig/files/patch-fc-cache_meson.build @@ -0,0 +1,10 @@ +--- fc-cache/meson.build.orig 2021-01-28 11:53:32 UTC ++++ fc-cache/meson.build +@@ -8,6 +8,6 @@ fccache = executable('fc-cache', ['fc-cache.c', fcstdi + tools_man_pages += ['fc-cache'] + + # Do not try to execute target's fc-cache on host when cross compiling +-if not meson.is_cross_build() ++if get_option('fc-cache').enabled() and not meson.is_cross_build() + meson.add_install_script(fccache, '-s', '-f', '-v') + endif diff --git a/x11-fonts/fontconfig/files/patch-meson__options.txt b/x11-fonts/fontconfig/files/patch-meson__options.txt new file mode 100644 index 000000000000..50bafa0c91ff --- /dev/null +++ b/x11-fonts/fontconfig/files/patch-meson__options.txt @@ -0,0 +1,8 @@ +--- meson_options.txt.orig 2020-12-03 11:45:00 UTC ++++ meson_options.txt +@@ -11,3 +11,5 @@ option('tests', type : 'feature', value : 'auto', yiel + description: 'Enable unit tests') + option('tools', type : 'feature', value : 'auto', yield : true, + description: 'Build command-line tools (fc-list, fc-query, etc.)') ++option('fc-cache', type: 'feature', value : 'enabled', ++ description : 'Run fc-cache on install') |