2018-01-24 00:23:45 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nih-at/libzip
|
2023-11-29 17:19:13 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 1b0bffe579de5d2c52b23075f5351a5670e9f7a364c14a876ca3c490a85c0c9b1ebd9a97e729c5c7e71d496a3a0a8f28505bfadd7d8423954d3547a9a8f63841
|
2021-11-17 08:46:54 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2021-04-30 06:54:14 +08:00
|
|
|
fix-dependency.patch
|
2023-08-17 04:01:24 +08:00
|
|
|
use-requires.patch
|
2017-06-19 00:52:32 +08:00
|
|
|
)
|
|
|
|
|
2020-04-24 12:40:21 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-11-17 08:46:54 +08:00
|
|
|
FEATURES
|
|
|
|
bzip2 ENABLE_BZIP2
|
|
|
|
liblzma ENABLE_LZMA
|
|
|
|
zstd ENABLE_ZSTD
|
|
|
|
openssl ENABLE_OPENSSL
|
|
|
|
wincrypto ENABLE_WINDOWS_CRYPTO
|
|
|
|
commoncrypto ENABLE_COMMONCRYPTO
|
|
|
|
mbedtls ENABLE_MBEDTLS
|
2020-04-24 12:40:21 +08:00
|
|
|
)
|
2019-03-14 01:06:49 +08:00
|
|
|
|
2021-11-17 08:46:54 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-03-14 01:06:49 +08:00
|
|
|
OPTIONS
|
2020-04-24 12:40:21 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2019-03-14 01:06:49 +08:00
|
|
|
-DBUILD_DOC=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_REGRESS=OFF
|
|
|
|
-DBUILD_TOOLS=OFF
|
2020-04-24 12:40:21 +08:00
|
|
|
-DENABLE_GNUTLS=OFF
|
2018-01-24 00:23:45 +08:00
|
|
|
)
|
2017-06-19 00:52:32 +08:00
|
|
|
|
2021-11-17 08:46:54 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-11-06 11:20:00 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-06-19 00:52:32 +08:00
|
|
|
|
2021-11-17 08:46:54 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libzip)
|
2021-01-13 12:12:44 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-11-17 08:46:54 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-06-18 05:47:32 +08:00
|
|
|
|
2018-08-08 19:15:13 +08:00
|
|
|
# Remove include directories from lib
|
2021-11-17 08:46:54 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/libzip" "${CURRENT_PACKAGES_DIR}/debug/lib/libzip")
|
2017-06-19 00:52:32 +08:00
|
|
|
|
|
|
|
# Remove debug include
|
2021-11-17 08:46:54 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-06-19 00:52:32 +08:00
|
|
|
|
|
|
|
# Copy copright information
|
2023-11-29 17:19:13 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|