[cyrus-sasl] new port (#39892)

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
This commit is contained in:
Tim Paine 2024-07-25 16:26:13 -04:00 committed by GitHub
parent 9c92649d25
commit 6474628c4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,52 @@
# NOTE: We don't use vcpkg_from_github as it does not
# include all the necessary source files
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${VERSION}/cyrus-sasl-${VERSION}.tar.gz"
FILENAME "cyrus-sasl-${VERSION}.tar.gz"
SHA512 db15af9079758a9f385457a79390c8a7cd7ea666573dace8bf4fb01bb4b49037538d67285727d6a70ad799d2e2318f265c9372e2427de9371d626a1959dd6f78
)
vcpkg_extract_source_archive(SOURCE_PATH
ARCHIVE "${ARCHIVE}"
)
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
file(REMOVE "${SOURCE_PATH}/include/md5global.h")
file(COPY "${SOURCE_PATH}/win32/include/md5global.h" DESTINATION "${SOURCE_PATH}/include/md5global.h")
vcpkg_install_nmake(
SOURCE_PATH "${SOURCE_PATH}"
DETERMINE_BUILD_TRIPLET
PROJECT_NAME "NTMakefile"
OPTIONS
GSSAPI=MITKerberos
"DB_INCLUDE=${CURRENT_INSTALLED_DIR}/include"
"DB_LIB=libdb48.lib"
OPTIONS_RELEASE
CFG=Release
"prefix=${CURRENT_PACKAGES_DIR}"
"OPENSSL_LIBPATH=${CURRENT_INSTALLED_DIR}/lib"
"DB_LIBPATH=${CURRENT_INSTALLED_DIR}/lib"
OPTIONS_DEBUG
CFG=Debug
"prefix=${CURRENT_PACKAGES_DIR}/debug"
"OPENSSL_LIBPATH=${CURRENT_INSTALLED_DIR}/lib/debug"
"DB_LIBPATH=${CURRENT_INSTALLED_DIR}/lib/debug"
)
else()
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
DETERMINE_BUILD_TRIPLET
OPTIONS
"--with-gssapi"
"--disable-macos-framework"
)
vcpkg_install_make()
endif()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -0,0 +1,16 @@
{
"name": "cyrus-sasl",
"version": "2.1.28",
"description": "Cyrus SASL is an implementation of SASL that makes it easy for application developers to integrate authentication mechanisms into their application in a generic way.",
"homepage": "https://github.com/cyrusimap/cyrus-sasl",
"license": "BSD-3-Clause-Attribution",
"supports": "linux | osx | (x64 & windows & !static & !uwp)",
"dependencies": [
{
"name": "berkeleydb",
"platform": "windows"
},
"krb5",
"openssl"
]
}

View File

@ -2128,6 +2128,10 @@
"baseline": "30.475.1",
"port-version": 0
},
"cyrus-sasl": {
"baseline": "2.1.28",
"port-version": 0
},
"cxxgraph": {
"baseline": "4.1.0",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "1577585f5eff556f1f478ffb103713e066caf4dc",
"version": "2.1.28",
"port-version": 0
}
]
}