2022-08-12 09:17:53 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2024-04-16 01:10:10 +08:00
|
|
|
URLS "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-${VERSION}.tgz"
|
|
|
|
FILENAME "openldap-${VERSION}.tgz"
|
2024-07-26 15:15:25 +08:00
|
|
|
SHA512 b119d60e179b4e27e9285c7c485f5728ab65dca7010879ffba41530f11f8ba359ea5693a3d1b9bb7279b7b8954f51c12db50e29aa231a5fa0bef11c7d1b5773a
|
2022-08-12 09:17:53 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_list(SET EXTRA_PATCHES)
|
|
|
|
|
|
|
|
# Check autoconf version < 2.70
|
|
|
|
execute_process(COMMAND autoconf --version OUTPUT_VARIABLE AUTOCONF_VERSION_STR)
|
|
|
|
if(NOT "${AUTOCONF_VERSION_STR}" STREQUAL "" AND "${AUTOCONF_VERSION_STR}" MATCHES ".*2\\.[0-6].*")
|
|
|
|
vcpkg_list(APPEND EXTRA_PATCHES m4.patch)
|
|
|
|
endif()
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2022-08-12 09:17:53 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
|
|
|
PATCHES
|
|
|
|
openssl.patch
|
|
|
|
subdirs.patch
|
|
|
|
${EXTRA_PATCHES}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_list(SET FEATURE_OPTIONS)
|
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_list(APPEND FEATURE_OPTIONS --enable-tools)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if("cyrus-sasl" IN_LIST FEATURES)
|
|
|
|
vcpkg_list(APPEND FEATURE_OPTIONS --with-cyrus-sasl)
|
2024-06-11 08:11:12 +08:00
|
|
|
message(
|
|
|
|
" openldap currently requires the following libraries from the system package manager:
|
|
|
|
libsasl2-dev
|
|
|
|
These can be installed on Ubuntu systems via sudo apt install libsasl2-dev"
|
|
|
|
)
|
2022-08-12 09:17:53 +08:00
|
|
|
else()
|
|
|
|
vcpkg_list(APPEND FEATURE_OPTIONS --without-cyrus-sasl)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Disable build environment details in binaries
|
|
|
|
set(ENV{SOURCE_DATE_EPOCH} "1659614616")
|
|
|
|
|
|
|
|
vcpkg_configure_make(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
DISABLE_VERBOSE_FLAGS
|
|
|
|
AUTOCONFIG
|
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
--disable-cleartext
|
|
|
|
--disable-mdb
|
|
|
|
--disable-relay
|
|
|
|
--disable-slapd
|
|
|
|
--disable-syncprov
|
|
|
|
--with-tls=openssl
|
|
|
|
--without-systemd
|
|
|
|
--without-fetch
|
|
|
|
--without-argon2
|
|
|
|
ac_cv_lib_iodbc_SQLDriverConnect=no
|
|
|
|
ac_cv_lib_odbc_SQLDriverConnect=no
|
|
|
|
ac_cv_lib_odbc32_SQLDriverConnect=no
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_build_make(BUILD_TARGET depend LOGFILE_ROOT depend)
|
|
|
|
vcpkg_install_make()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|