diff options
| author | Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> | 2020-12-08 18:58:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-08 09:58:49 -0800 |
| commit | 5dcfd3eaa43cfa10de578bf9ab8ab67d9171f109 (patch) | |
| tree | 344d4a88dd5a7a489e40ab4ab79e15fb1c83d123 | |
| parent | fc05ba67b4c5a1e6276e29ba8f8333912cbde9db (diff) | |
| download | vcpkg-5dcfd3eaa43cfa10de578bf9ab8ab67d9171f109.tar.gz vcpkg-5dcfd3eaa43cfa10de578bf9ab8ab67d9171f109.zip | |
[fontconfig] fix dll name in def file (#14946)
* [fontconfig] fix dll name in def file
* make the patch conditional
| -rw-r--r-- | ports/fontconfig/CONTROL | 1 | ||||
| -rw-r--r-- | ports/fontconfig/fix_def_dll_name.patch | 13 | ||||
| -rw-r--r-- | ports/fontconfig/portfile.cmake | 5 |
3 files changed, 19 insertions, 0 deletions
diff --git a/ports/fontconfig/CONTROL b/ports/fontconfig/CONTROL index 636b7499a..fcdf2f768 100644 --- a/ports/fontconfig/CONTROL +++ b/ports/fontconfig/CONTROL @@ -1,5 +1,6 @@ Source: fontconfig Version: 2.13.1 +Port-Version: 1 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, dirent, libuuid (!windows&!osx), gettext
\ No newline at end of file diff --git a/ports/fontconfig/fix_def_dll_name.patch b/ports/fontconfig/fix_def_dll_name.patch new file mode 100644 index 000000000..cae76fc93 --- /dev/null +++ b/ports/fontconfig/fix_def_dll_name.patch @@ -0,0 +1,13 @@ +diff --git a/src/Makefile.am b/src/Makefile.am +index 3cf93a7f8..c80f4dd83 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -218,7 +218,7 @@ fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES) + (cat $(PUBLIC_FILES) $(PUBLIC_FT_FILES) || echo 'FcERROR ()' ) | \
+ $(GREP) '^Fc[^ ]* *(' | $(SED) -e 's/ *(.*$$//' -e 's/^/ /' | \
+ sort; \
+- echo LIBRARY libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll; \
++ echo LIBRARY fontconfig-@LIBT_CURRENT_MINUS_AGE@.dll; \
+ echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@
+ @ ! $(GREP) -q FcERROR $@ || ($(RM) $@; false)
+
diff --git a/ports/fontconfig/portfile.cmake b/ports/fontconfig/portfile.cmake index b4641e352..150bca5e9 100644 --- a/ports/fontconfig/portfile.cmake +++ b/ports/fontconfig/portfile.cmake @@ -1,5 +1,9 @@ set(FONTCONFIG_VERSION 2.13.1) +if(NOT VCPKG_TARGET_IS_MINGW AND VCPKG_TARGET_IS_WINDOWS) + set(PATCHES fix_def_dll_name.patch) +endif() + vcpkg_from_gitlab( GITLAB_URL https://gitlab.freedesktop.org OUT_SOURCE_PATH SOURCE_PATH @@ -10,6 +14,7 @@ vcpkg_from_gitlab( PATCHES remove_tests.patch build.patch build2.patch + ${PATCHES} ) vcpkg_find_acquire_program(GPERF) |
