2021-06-11 07:13:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zlib-ng/zlib-ng
|
2021-11-16 08:36:05 +08:00
|
|
|
REF 2.0.5
|
|
|
|
SHA512 a643089a8189bf8bd24d679b84f07ae14932b4d88b88e94c44cca23350d6a9bbdaa411822d3651c2b0bf79f30c9f99514cc252cf9e9ab0b3a840540206466654
|
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
|
|
|
|
-DZLIB_FULL_VERSION=2.0.3
|
|
|
|
-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
|
2021-06-11 07:13:36 +08:00
|
|
|
)
|