[Freetype] burn in linkage (#35999)

This commit is contained in:
Alexander Neumann 2024-01-05 02:02:27 +01:00 committed by GitHub
parent b8ec6abf5d
commit 3434b0a1b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 2 deletions

View File

@ -74,6 +74,14 @@ vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
if(VCPKG_TARGET_IS_WINDOWS)
set(dll_linkage 1)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(dll_linkage 0)
endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/freetype/config/public-macros.h" "#elif defined( DLL_IMPORT )" "#elif ${dll_linkage}")
endif()
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
"${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -1,7 +1,7 @@
{
"name": "freetype",
"version": "2.12.1",
"port-version": 4,
"port-version": 5,
"description": "A library to render fonts.",
"homepage": "https://www.freetype.org/",
"license": "FTL OR GPL-2.0-or-later",

View File

@ -2782,7 +2782,7 @@
},
"freetype": {
"baseline": "2.12.1",
"port-version": 4
"port-version": 5
},
"freetype-gl": {
"baseline": "2022-01-17",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e5480587e6a2faf047bc6d8520e48c12fc57604a",
"version": "2.12.1",
"port-version": 5
},
{
"git-tree": "4e52babe5d382c3f9cdb1b8037874d78eceb3512",
"version": "2.12.1",