2018-01-24 00:23:45 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nih-at/libzip
|
2020-06-18 05:47:32 +08:00
|
|
|
REF dcd9a0bfe1ac2893d7f62bafb19f0a4d7b08c0f7 #v1.7.1
|
|
|
|
SHA512 33ad594398f79544636464d6ae0892553a212dc833b508820f81f10823c3a5c4016288d05953176fb8d52919414edd28f26da6037b93129a58826abdcb501d18
|
2018-08-08 19:15:13 +08:00
|
|
|
HEAD_REF master
|
2020-08-08 02:47:36 +08:00
|
|
|
PATCHES fix-findpackage.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
|
|
|
|
bzip2 ENABLE_BZIP2
|
|
|
|
liblzma ENABLE_LZMA
|
|
|
|
openssl ENABLE_OPENSSL
|
|
|
|
wincrypto ENABLE_WINDOWS_CRYPTO
|
|
|
|
commoncrypto ENABLE_COMMONCRYPTO
|
|
|
|
mbedtls ENABLE_MBEDTLS
|
|
|
|
)
|
2019-03-14 01:06:49 +08:00
|
|
|
|
2018-01-24 00:23:45 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
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
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-11-06 11:20:00 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-06-19 00:52:32 +08:00
|
|
|
|
2020-06-18 05:47:32 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share/libzip)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
2018-08-08 19:15:13 +08:00
|
|
|
# Remove include directories from lib
|
2017-06-19 00:52:32 +08: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-06 11:20:00 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|