Skip to content

Commit

Permalink
[shiftmedia-libgnutls] fix single config builds (#42445)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A authored Dec 2, 2024
1 parent 3cc6440 commit f16c853
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
16 changes: 9 additions & 7 deletions ports/shiftmedia-libgnutls/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ShiftMediaProject/gnutls
REF ${VERSION}
SHA512 ff3991012425fb047229b3a72f3ab465981e002f93840df0dc3729b152fb497f88c74cb50022fc6f30aa2f6db3c34ed4e44e5556ec249f8da5b20886bb4116b1
SHA512 db318ee923d0810484e98342cc395624efc52b7227020fc14b9fa9ae63e4b8bf254cfd90470e051cd992fb167fb839fff340430a223bcc50d1422f1738a5b599
HEAD_REF master
PATCHES
external-libtasn1.patch
Expand Down Expand Up @@ -162,12 +162,14 @@ set(includedir "\${prefix}/include")
set(GNUTLS_LIBS "-lgnutls")
configure_file("${SOURCE_PATH}/lib/gnutls.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gnutls.pc" @ONLY)

set(prefix "${CURRENT_INSTALLED_DIR}/debug")
set(exec_prefix "\${prefix}")
set(libdir "\${prefix}/lib")
set(includedir "\${prefix}/../include")
set(GNUTLS_LIBS "-lgnutlsd")
configure_file("${SOURCE_PATH}/lib/gnutls.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gnutls.pc" @ONLY)
if(NOT VCPKG_BUILD_TYPE)
set(prefix "${CURRENT_INSTALLED_DIR}/debug")
set(exec_prefix "\${prefix}")
set(libdir "\${prefix}/lib")
set(includedir "\${prefix}/../include")
set(GNUTLS_LIBS "-lgnutlsd")
configure_file("${SOURCE_PATH}/lib/gnutls.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gnutls.pc" @ONLY)
endif()

vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
Expand Down
2 changes: 1 addition & 1 deletion ports/shiftmedia-libgnutls/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "shiftmedia-libgnutls",
"version": "3.8.7",
"port-version": 1,
"port-version": 2,
"description": "Unofficial GnuTLS fork with added custom native Visual Studio project build tools. ",
"homepage": "https://github.com/ShiftMediaProject/gnutls",
"license": "LGPL-2.1-only",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8346,7 +8346,7 @@
},
"shiftmedia-libgnutls": {
"baseline": "3.8.7",
"port-version": 1
"port-version": 2
},
"shiftmedia-libgpg-error": {
"baseline": "1.45",
Expand Down
5 changes: 5 additions & 0 deletions versions/s-/shiftmedia-libgnutls.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dcd9bcc539c9c95eb9c40a11f053bd2bad22e822",
"version": "3.8.7",
"port-version": 2
},
{
"git-tree": "8b5163512dd0d8522a6da9f2c55ac8ca1d1d378f",
"version": "3.8.7",
Expand Down

0 comments on commit f16c853

Please sign in to comment.