[krb5] Add osx (#38943)

Add osx

Take elements from here:
https://github.com/microsoft/vcpkg/pull/38685

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] Any patches that are no longer applied are deleted from the port's
directory.
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
This commit is contained in:
talregev 2024-05-30 20:31:59 +03:00 committed by GitHub
parent bb8654acb1
commit eb142b6a7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 14 additions and 4 deletions

View File

@ -74,11 +74,16 @@ if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
endforeach()
endif()
else()
if(VCPKG_TARGET_IS_OSX AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string("${SOURCE_PATH}/src/build-tools/mit-krb5.pc.in" "@COM_ERR_LIB@" "@COM_ERR_LIB@ -framework Kerberos")
set(OPTIONS_OSX "LDFLAGS=-framework Kerberos \$LDFLAGS")
endif()
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}/src"
AUTOCONFIG
OPTIONS
"CFLAGS=-fcommon \$CFLAGS"
${OPTIONS_OSX}
)
vcpkg_install_make()

View File

@ -2,7 +2,7 @@
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "krb5",
"version": "1.21.2",
"port-version": 2,
"port-version": 3,
"description": [
"Kerberos is a network authentication protocol.",
"It is designed to provide strong authentication for client/server applications by using secret-key cryptography.",
@ -11,5 +11,5 @@
],
"homepage": "https://web.mit.edu/kerberos/",
"license": "MIT",
"supports": "linux | (x64 & !static & !uwp & windows)"
"supports": "linux | (x64 & !static & !uwp & windows) | osx"
}

View File

@ -41,7 +41,7 @@
"features": [
"gssapi"
],
"platform": "linux"
"platform": "linux | osx"
}
]
}

View File

@ -4054,7 +4054,7 @@
},
"krb5": {
"baseline": "1.21.2",
"port-version": 2
"port-version": 3
},
"ktx": {
"baseline": "4.3.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9a1fcab10fa739ff109f086e7e24b689294e3edc",
"version": "1.21.2",
"port-version": 3
},
{
"git-tree": "6ab073c854c5580092585186e6a7fef808c91e6b",
"version": "1.21.2",