2018-01-23 17:23:45 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nih-at/libzip
|
2020-09-24 20:44:22 +02:00
|
|
|
REF 66e496489bdae81bfda8b0088172871d8fda0032 #v1.7.3
|
|
|
|
SHA512 ae0cda3e9decf5a71bf1e0907a2a21b2c0d83e6e576faf4d9401d6954707ae298c1c09febbc5339f457ace3577fdd405a790c819ef24778990ca6bf1e9516d54
|
|
|
|
HEAD_REF v1.7.3
|
2021-04-30 06:54:14 +08:00
|
|
|
PATCHES
|
|
|
|
fix-findpackage.patch
|
|
|
|
fix-dependency.patch
|
2017-06-18 17:52:32 +01:00
|
|
|
)
|
|
|
|
|
2020-04-24 06:40:21 +02:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
bzip2 ENABLE_BZIP2
|
|
|
|
liblzma ENABLE_LZMA
|
|
|
|
openssl ENABLE_OPENSSL
|
|
|
|
wincrypto ENABLE_WINDOWS_CRYPTO
|
|
|
|
commoncrypto ENABLE_COMMONCRYPTO
|
|
|
|
mbedtls ENABLE_MBEDTLS
|
|
|
|
)
|
2019-03-13 18:06:49 +01:00
|
|
|
|
2018-01-23 17:23:45 +01:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2019-03-13 18:06:49 +01:00
|
|
|
OPTIONS
|
2020-04-24 06:40:21 +02:00
|
|
|
${FEATURE_OPTIONS}
|
2019-03-13 18:06:49 +01:00
|
|
|
-DBUILD_DOC=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_REGRESS=OFF
|
|
|
|
-DBUILD_TOOLS=OFF
|
2020-04-24 06:40:21 +02:00
|
|
|
-DENABLE_GNUTLS=OFF
|
2018-01-23 17:23:45 +01:00
|
|
|
)
|
2017-06-18 17:52:32 +01:00
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-11-05 19:20:00 -08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-06-18 17:52:32 +01:00
|
|
|
|
2021-04-30 06:54:14 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
|
2021-01-12 21:12:44 -07:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-06-18 05:47:32 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
2018-08-08 13:15:13 +02:00
|
|
|
# Remove include directories from lib
|
2017-06-18 17:52:32 +01:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/libzip ${CURRENT_PACKAGES_DIR}/debug/lib/libzip)
|
|
|
|
|
|
|
|
# Remove debug include
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Copy copright information
|
2019-11-05 19:20:00 -08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|