2022-05-05 10:36:46 +08:00
|
|
|
set(ZLIB_FULL_VERSION 2.0.6)
|
|
|
|
|
2021-06-11 07:13:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zlib-ng/zlib-ng
|
2022-05-05 10:36:46 +08:00
|
|
|
REF "${ZLIB_FULL_VERSION}"
|
|
|
|
SHA512 4888f17160d0a87a9b349704047ae0d0dc57237a10e11adae09ace957afa9743cce5191db67cb082991421fc961ce68011199621034d2369c0e7724fad58b4c5
|
2021-06-11 07:13:36 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2021-11-16 08:36:05 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-06-11 07:13:36 +08:00
|
|
|
OPTIONS
|
2022-05-05 10:36:46 +08:00
|
|
|
"-DZLIB_FULL_VERSION=${ZLIB_FULL_VERSION}"
|
2021-06-11 07:13:36 +08:00
|
|
|
-DZLIB_ENABLE_TESTS=OFF
|
|
|
|
-DWITH_NEW_STRATEGIES=ON
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DWITH_OPTIM=ON
|
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-11-16 08:36:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
2021-06-11 07:13:36 +08:00
|
|
|
)
|
2021-11-16 08:36:05 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
2022-05-05 10:36:46 +08:00
|
|
|
)
|