[zlib-ng] create a new port (#18223)

* [zlib-ng] create a new port

* [zlib-ng] update baseline

* [zlib-ng] remove zlib-compat

* [zlib-ng] remove unused dependency
This commit is contained in:
Park DongHa 2021-06-11 08:13:36 +09:00 committed by GitHub
parent 42f2d6f4d6
commit 96bc28ea59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,27 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO zlib-ng/zlib-ng
REF 2.0.3
SHA512 e1afe91e1a8b4c54a004b672f539ae68f7dc1f1b08ba93514c0de674230354c944d496753f00ad272f16ef322705f275b5b72dac6c2a757ec741ef3f1ea1d59a
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
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()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share
${CURRENT_PACKAGES_DIR}/debug/include
)
file(INSTALL ${SOURCE_PATH}/LICENSE.md
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
)

13
ports/zlib-ng/vcpkg.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "zlib-ng",
"version": "2.0.3",
"description": "zlib replacement with optimizations for 'next generation' systems",
"homepage": "https://github.com/zlib-ng/zlib-ng",
"license": "Zlib",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -6812,6 +6812,10 @@
"baseline": "1.2.11",
"port-version": 10
},
"zlib-ng": {
"baseline": "2.0.3",
"port-version": 0
},
"zookeeper": {
"baseline": "3.5.5-1",
"port-version": 0

9
versions/z-/zlib-ng.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "7020274700cc1aaa817aa752f36a423fed7c095c",
"version": "2.0.3",
"port-version": 0
}
]
}