File fontconfig_tests.patch of Package mingw-fontconfig
diff -rupN --no-dereference fontconfig-2.16.0/configure.ac fontconfig-2.16.0-new/configure.ac --- fontconfig-2.16.0/configure.ac 2025-01-17 16:15:05.000000000 +0100 +++ fontconfig-2.16.0-new/configure.ac 2025-01-27 13:49:40.578068268 +0100 @@ -732,6 +732,21 @@ fi AM_CONDITIONAL(HAVE_PTHREAD, $have_pthread) +# +# Allow not building tests +# + +default_tests="yes" + +AC_ARG_ENABLE(tests, + [AC_HELP_STRING([--disable-tests], + [Don't build tests])], + , + enable_tests=$default_tests) + +AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = xyes) + + dnl =========================================================================== # diff -rupN --no-dereference fontconfig-2.16.0/Makefile.am fontconfig-2.16.0-new/Makefile.am --- fontconfig-2.16.0/Makefile.am 2025-01-17 16:15:05.000000000 +0100 +++ fontconfig-2.16.0-new/Makefile.am 2025-01-27 13:49:40.578381696 +0100 @@ -24,7 +24,10 @@ SUBDIRS=fontconfig fc-case fc-lang src \ fc-cache fc-cat fc-conflist fc-list fc-match \ fc-pattern fc-query fc-scan fc-validate conf.d \ - its po po-conf test + its po po-conf +if ENABLE_TESTS +SUBDIRS += test +endif if ENABLE_DOCS SUBDIRS += doc endif