diff --git a/ports/fontconfig/CONTROL b/ports/fontconfig/CONTROL index f83c3b1cecf449..f1f610e530a416 100644 --- a/ports/fontconfig/CONTROL +++ b/ports/fontconfig/CONTROL @@ -1,6 +1,6 @@ Source: fontconfig -Version: 2.13.1 -Port-Version: 7 +Version: 2.13.94 +Port-Version: 8 Homepage: https://www.freedesktop.org/software/fontconfig/front.html Description: Library for configuring and customizing font access. Build-Depends: freetype, expat, libiconv, dirent, pthread, json-c, libuuid (!windows&!osx&!mingw), gettext diff --git a/ports/fontconfig/build.patch b/ports/fontconfig/build.patch index 5b8c1b3a9bfb04..417cfacc5ba3b0 100644 --- a/ports/fontconfig/build.patch +++ b/ports/fontconfig/build.patch @@ -41,13 +41,13 @@ diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 87e302083..8b5012110 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c -@@ -34,11 +34,20 @@ +@@ -34,16 +34,23 @@ #include #include #include -+#ifdef HAVE_UNISTD_H + #ifdef HAVE_UNISTD_H #include -+#endif + #endif +#ifdef _MSC_VER +#include +#endif @@ -59,20 +59,23 @@ index 87e302083..8b5012110 100644 +#if HAVE_FCNTL_H #include +#endif + #ifdef HAVE_DIRENT_H #include + #endif #include #include + diff --git a/fc-cat/fc-cat.c b/fc-cat/fc-cat.c index 69611bcc3..e7b0efbaa 100644 --- a/fc-cat/fc-cat.c +++ b/fc-cat/fc-cat.c -@@ -36,9 +36,16 @@ +@@ -36,11 +36,16 @@ #include #include #include -+#ifdef HAVE_UNISTD_H + #ifdef HAVE_UNISTD_H #include -+#endif + #endif +#ifdef _MSC_VER +#include +#endif @@ -87,13 +90,13 @@ diff --git a/fc-conflist/fc-conflist.c b/fc-conflist/fc-conflist.c index 5c40a0f09..affaca09e 100644 --- a/fc-conflist/fc-conflist.c +++ b/fc-conflist/fc-conflist.c -@@ -35,7 +35,12 @@ +@@ -35,9 +35,12 @@ #include #include -+#ifdef HAVE_UNISTD_H + #ifdef HAVE_UNISTD_H #include -+#endif + #endif +#ifdef _MSC_VER +#include +#endif @@ -104,13 +107,10 @@ diff --git a/fc-list/fc-list.c b/fc-list/fc-list.c index 2039acd36..0e56b1c32 100644 --- a/fc-list/fc-list.c +++ b/fc-list/fc-list.c -@@ -24,7 +24,12 @@ +@@ -24,6 +24,9 @@ #include #include -+#ifdef HAVE_UNISTD_H - #include -+#endif +#ifdef _MSC_VER +#include +#endif @@ -121,13 +121,10 @@ diff --git a/fc-match/fc-match.c b/fc-match/fc-match.c index dee61479d..da8d820aa 100644 --- a/fc-match/fc-match.c +++ b/fc-match/fc-match.c -@@ -33,7 +33,12 @@ +@@ -33,6 +33,9 @@ #include #include -+#ifdef HAVE_UNISTD_H - #include -+#endif +#ifdef _MSC_VER +#include +#endif @@ -138,13 +135,10 @@ diff --git a/fc-pattern/fc-pattern.c b/fc-pattern/fc-pattern.c index 7989b816f..15b43e098 100644 --- a/fc-pattern/fc-pattern.c +++ b/fc-pattern/fc-pattern.c -@@ -33,7 +33,12 @@ +@@ -33,6 +33,9 @@ #include #include -+#ifdef HAVE_UNISTD_H - #include -+#endif +#ifdef _MSC_VER +#include +#endif @@ -155,13 +149,10 @@ diff --git a/fc-query/fc-query.c b/fc-query/fc-query.c index fbffb8415..58c251fe3 100644 --- a/fc-query/fc-query.c +++ b/fc-query/fc-query.c -@@ -36,7 +36,12 @@ +@@ -36,6 +36,9 @@ #include #include #include -+#ifdef HAVE_UNISTD_H - #include -+#endif +#ifdef _MSC_VER +#include +#endif @@ -172,13 +163,10 @@ diff --git a/fc-scan/fc-scan.c b/fc-scan/fc-scan.c index 9302ac559..3a0ccf188 100644 --- a/fc-scan/fc-scan.c +++ b/fc-scan/fc-scan.c -@@ -36,7 +36,12 @@ +@@ -36,6 +36,9 @@ #include #include #include -+#ifdef HAVE_UNISTD_H - #include -+#endif +#ifdef _MSC_VER +#include +#endif @@ -189,66 +177,32 @@ diff --git a/fc-validate/fc-validate.c b/fc-validate/fc-validate.c index 2ceee2024..8f702f190 100644 --- a/fc-validate/fc-validate.c +++ b/fc-validate/fc-validate.c -@@ -36,7 +36,12 @@ +@@ -36,6 +36,9 @@ #include #include #include -+#ifdef HAVE_UNISTD_H - #include -+#endif +#ifdef _MSC_VER +#include +#endif #include #include #include -diff --git a/src/fcatomic.c b/src/fcatomic.c -index d12d32408..da7234934 100644 ---- a/src/fcatomic.c -+++ b/src/fcatomic.c -@@ -50,7 +50,9 @@ - #include "fcint.h" - #include - #include -+#ifdef HAVE_UNISTD_H - #include -+#endif - #include - #include - -diff --git a/src/fccache.c b/src/fccache.c -index 2b604014e..50fb742c6 100644 ---- a/src/fccache.c -+++ b/src/fccache.c -@@ -30,7 +30,9 @@ - #include - #include - #include -+#ifndef _MSC_VER - #include -+#endif - #include - #if defined(HAVE_MMAP) || defined(__CYGWIN__) - # include diff --git a/src/fcint.h b/src/fcint.h index de78cd8c9..4fb269ffa 100644 --- a/src/fcint.h +++ b/src/fcint.h -@@ -40,7 +40,18 @@ +@@ -40,9 +40,15 @@ #include #include #include -+#ifdef HAVE_UNISTD_H + #ifdef HAVE_UNISTD_H #include -+#endif + #endif +#ifdef _MSC_VER +#include +#include +#include +#define ssize_t SSIZE_T -+#define F_OK 0 -+#define W_OK 2 -+typedef int mode_t; +#endif #include #include @@ -257,22 +211,21 @@ diff --git a/test/test-migration.c b/test/test-migration.c index b7d96dcce..7eac59dcc 100644 --- a/test/test-migration.c +++ b/test/test-migration.c -@@ -28,13 +28,16 @@ +@@ -28,14 +28,16 @@ #include #include #include -+#ifdef HAVE_UNISTD_H - #include -+#endif +#ifdef _MSC_VER +#include +#endif #include #include + #ifdef HAVE_UNISTD_H + #include + #endif #ifndef HAVE_STRUCT_DIRENT_D_TYPE -#include #include --#include #endif #include diff --git a/ports/fontconfig/build2.patch b/ports/fontconfig/build2.patch deleted file mode 100644 index 2b2780abb00cee..00000000000000 --- a/ports/fontconfig/build2.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff --git a/Tools.mk b/Tools.mk -index f0fa0ec50..24e5afd16 100644 ---- a/Tools.mk -+++ b/Tools.mk -@@ -43,7 +43,7 @@ AM_CPPFLAGS = \ - $(WARN_CFLAGS) - - $(TOOL): $(TSRC) $(ALIAS_FILES) -- $(AM_V_GEN) $(CC_FOR_BUILD) -o $(TOOL) $< $(AM_CPPFLAGS) -+ $(AM_V_GEN) $(CC_FOR_BUILD) -o $(TOOL) $< $(AM_CPPFLAGS) $(LIBINTL) $(CFLAGS) - - $(TARG): $(TMPL) $(TSRC) $(DEPS) - $(AM_V_GEN) $(MAKE) $(TOOL) && \ -diff --git a/fc-case/fc-case.c b/fc-case/fc-case.c -index 236bff5f0..6fb21c855 100644 ---- a/fc-case/fc-case.c -+++ b/fc-case/fc-case.c -@@ -345,7 +345,7 @@ main (int argc, char **argv) - break; - fputs (line, stdout); - } -- -+ fflush (stdout); - /* - * Dump these tables - */ -@@ -354,7 +354,7 @@ main (int argc, char **argv) - /* - * And flush out the rest of the input file - */ -- -+ fflush (stdout); - while (fgets (line, sizeof (line), stdin)) - fputs (line, stdout); - diff --git a/ports/fontconfig/extra-escaping.patch b/ports/fontconfig/extra-escaping.patch new file mode 100644 index 00000000000000..f10ab9425b3225 --- /dev/null +++ b/ports/fontconfig/extra-escaping.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 7c1a697..93ccf1b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -499,7 +499,7 @@ FC_DEFAULT_FONTS="" + if test x${default_fonts+set} = xset; then + fc_IFS=$IFS + IFS="," +- for p in "$default_fonts"; do ++ for p in $default_fonts; do + FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS\t$p\n" + done + IFS=$fc_IFS diff --git a/ports/fontconfig/macos_arm_fccache.patch b/ports/fontconfig/macos_arm_fccache.patch deleted file mode 100644 index 2cc0734fb20464..00000000000000 --- a/ports/fontconfig/macos_arm_fccache.patch +++ /dev/null @@ -1,34 +0,0 @@ - src/fcatomic.h | 12 ++---------- - 1 file changed, 2 insertions(+), 10 deletions(-) - -diff --git a/src/fcatomic.h b/src/fcatomic.h -index cc28a883c13fadf2ad9900586a9cae3097354671..657a5f551adfc37415231b7002746ad6cd031c78 100644 ---- a/src/fcatomic.h -+++ b/src/fcatomic.h -@@ -70,24 +70,16 @@ typedef LONG fc_atomic_int_t; - #elif !defined(FC_NO_MT) && defined(__APPLE__) - - #include --#ifdef __MAC_OS_X_MIN_REQUIRED - #include --#elif defined(__IPHONE_OS_MIN_REQUIRED) --#include --#endif - - typedef int fc_atomic_int_t; - #define fc_atomic_int_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V)) - - #define fc_atomic_ptr_get(P) (OSMemoryBarrier (), (void *) *(P)) --#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 || __IPHONE_VERSION_MIN_REQUIRED >= 20100) -+#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 || __IPHONE_OS_VERSION_MIN_REQUIRED >= 20100) - #define fc_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwapPtrBarrier ((void *) (O), (void *) (N), (void **) (P)) - #else --#if __ppc64__ || __x86_64__ --#define fc_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P)) --#else --#define fc_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwap32Barrier ((int32_t) (O), (int32_t) (N), (int32_t*) (P)) --#endif -+#error "Your macOS / iOS targets are too old" - #endif - - #elif !defined(FC_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES) diff --git a/ports/fontconfig/portfile.cmake b/ports/fontconfig/portfile.cmake index 9635d185403353..11ad9c7ed5fa97 100644 --- a/ports/fontconfig/portfile.cmake +++ b/ports/fontconfig/portfile.cmake @@ -1,4 +1,4 @@ -set(FONTCONFIG_VERSION 2.13.1) +set(FONTCONFIG_VERSION 2.13.94) if(NOT VCPKG_TARGET_IS_MINGW AND VCPKG_TARGET_IS_WINDOWS) set(PATCHES fix_def_dll_name.patch) @@ -8,14 +8,13 @@ vcpkg_from_gitlab( GITLAB_URL https://gitlab.freedesktop.org OUT_SOURCE_PATH SOURCE_PATH REPO fontconfig/fontconfig - REF 844d8709a1f3ecab45015b24b72dd775c13b2421 #v2.13.1 - SHA512 fed0cf46f5dca9cb1e03475d7a8d7efdab06c7180fe0c922fb30cadfa91e1efe1f6a6e36d2fdb742a479cb09c05b0aefb5da5658bf2e01a32b7ac88ee8ff0b58 + REF e291fda7d42e5d64379555097a066d9c2c4efce3 #v2.13.1 + SHA512 d531bf9bc0dcae418c1f5936bb2847e94ed03f3097d16eb10cbff52d02999d2052b05e3491205739174f238bcb387f63820f5ff4cf996e232f413a511aede990 HEAD_REF master # branch name PATCHES remove_tests.patch build.patch - build2.patch disable-install-data.patch - macos_arm_fccache.patch + extra-escaping.patch ${PATCHES} ) @@ -23,6 +22,10 @@ vcpkg_find_acquire_program(GPERF) get_filename_component(GPERF_PATH ${GPERF} DIRECTORY) vcpkg_add_to_path(${GPERF_PATH}) +vcpkg_find_acquire_program(PYTHON3) +get_filename_component(PYTHON3_EXE_PATH ${PYTHON3} DIRECTORY) +vcpkg_add_to_path(${GPERF_PATH}) + vcpkg_configure_make( AUTOCONFIG COPY_SOURCE @@ -104,7 +107,7 @@ if(NOT VCPKG_TARGET_IS_WINDOWS) endif() if(VCPKG_TARGET_IS_WINDOWS) - # Unnecessary make rule creating the fontconfig cache dir on windows. + # Unnecessary make rule creating the fontconfig cache dir on windows. file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}LOCAL_APPDATA_FONTCONFIG_CACHE") endif() diff --git a/versions/baseline.json b/versions/baseline.json index a200b7aee8824e..bd70186ce8525f 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2065,8 +2065,8 @@ "port-version": 0 }, "fontconfig": { - "baseline": "2.13.1", - "port-version": 7 + "baseline": "2.13.94", + "port-version": 8 }, "foonathan-memory": { "baseline": "2019-07-21-1", diff --git a/versions/f-/fontconfig.json b/versions/f-/fontconfig.json index 46a0f251a87182..6cf07c89ef77ee 100644 --- a/versions/f-/fontconfig.json +++ b/versions/f-/fontconfig.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "a3dfba4a6e109cc4fa43a881c193161edb5ca9ed", + "version-string": "2.13.94", + "port-version": 8 + }, { "git-tree": "e28c20718e723ea702e408f52f76343950b1a3f2", "version-string": "2.13.1",