[libxfont] fix single config builds (#42730)

This commit is contained in:
Alexander Neumann 2024-12-16 19:07:18 +01:00 committed by GitHub
parent a09e4e86d8
commit 2892ef50b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 5 deletions

View File

@ -35,11 +35,13 @@ if(VCPKG_TARGET_IS_WINDOWS)
file(READ "${_file}" _contents) file(READ "${_file}" _contents)
string(REPLACE "-lm" "" _contents "${_contents}") string(REPLACE "-lm" "" _contents "${_contents}")
file(WRITE "${_file}" "${_contents}") file(WRITE "${_file}" "${_contents}")
if(NOT VCPKG_BUILD_TYPE)
set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/xfont2.pc") set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/xfont2.pc")
file(READ "${_file}" _contents) file(READ "${_file}" _contents)
string(REPLACE "-lm" "" _contents "${_contents}") string(REPLACE "-lm" "" _contents "${_contents}")
file(WRITE "${_file}" "${_contents}") file(WRITE "${_file}" "${_contents}")
endif() endif()
endif()
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

View File

@ -1,6 +1,7 @@
{ {
"name": "libxfont", "name": "libxfont",
"version": "2.0.5", "version": "2.0.5",
"port-version": 1,
"description": "X font handling library for server & utilities", "description": "X font handling library for server & utilities",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxfont", "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxfont",
"license": null, "license": null,

View File

@ -5410,7 +5410,7 @@
}, },
"libxfont": { "libxfont": {
"baseline": "2.0.5", "baseline": "2.0.5",
"port-version": 0 "port-version": 1
}, },
"libxft": { "libxft": {
"baseline": "2.3.4", "baseline": "2.3.4",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "68da445b35a06c8bdc939e363098874e80da5b14",
"version": "2.0.5",
"port-version": 1
},
{ {
"git-tree": "f78821d4b3573bc0b927dc76f10660665f0b2893", "git-tree": "f78821d4b3573bc0b927dc76f10660665f0b2893",
"version": "2.0.5", "version": "2.0.5",