Skip to content

Commit

Permalink
[libxfont] fix single config builds (microsoft#42730)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A authored Dec 16, 2024
1 parent a09e4e8 commit 2892ef5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
10 changes: 6 additions & 4 deletions ports/libxfont/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ if(VCPKG_TARGET_IS_WINDOWS)
file(READ "${_file}" _contents)
string(REPLACE "-lm" "" _contents "${_contents}")
file(WRITE "${_file}" "${_contents}")
set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/xfont2.pc")
file(READ "${_file}" _contents)
string(REPLACE "-lm" "" _contents "${_contents}")
file(WRITE "${_file}" "${_contents}")
if(NOT VCPKG_BUILD_TYPE)
set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/xfont2.pc")
file(READ "${_file}" _contents)
string(REPLACE "-lm" "" _contents "${_contents}")
file(WRITE "${_file}" "${_contents}")
endif()
endif()
vcpkg_fixup_pkgconfig()

Expand Down
1 change: 1 addition & 0 deletions ports/libxfont/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libxfont",
"version": "2.0.5",
"port-version": 1,
"description": "X font handling library for server & utilities",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxfont",
"license": null,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5410,7 +5410,7 @@
},
"libxfont": {
"baseline": "2.0.5",
"port-version": 0
"port-version": 1
},
"libxft": {
"baseline": "2.3.4",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libxfont.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "68da445b35a06c8bdc939e363098874e80da5b14",
"version": "2.0.5",
"port-version": 1
},
{
"git-tree": "f78821d4b3573bc0b927dc76f10660665f0b2893",
"version": "2.0.5",
Expand Down

0 comments on commit 2892ef5

Please sign in to comment.