Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cyrus-sasl] new port #39892

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions ports/cyrus-sasl/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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}"
)

timkpaine marked this conversation as resolved.
Show resolved Hide resolved
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")
16 changes: 16 additions & 0 deletions ports/cyrus-sasl/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2124,6 +2124,10 @@
"baseline": "30.475.1",
"port-version": 0
},
"cyrus-sasl": {
"baseline": "2.1.28",
"port-version": 0
},
"cxxgraph": {
"baseline": "2.0.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/c-/cyrus-sasl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "1577585f5eff556f1f478ffb103713e066caf4dc",
"version": "2.1.28",
"port-version": 0
}
]
}
Loading