Skip to content

Commit

Permalink
[zlib-ng,zlib] update to 2.2.2, port redirection
Browse files Browse the repository at this point in the history
* https://github.com/zlib-ng/zlib-ng/releases/tag/2.2.2
* windows: 'zlib' redirected to 'zlib-ng'
  • Loading branch information
luncliff committed Oct 3, 2024
1 parent 34dff85 commit 2c9269b
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 27 deletions.
19 changes: 0 additions & 19 deletions ports/zlib-ng/fix-cmake.patch

This file was deleted.

11 changes: 5 additions & 6 deletions ports/zlib-ng/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO zlib-ng/zlib-ng
REF 2.1.6
SHA512 59ef586c09b9a63788475abfd6dd59ed602316b38f543f801bea802ff8bec8b55a89bee90375b8bbffa3bdebc7d92a00903f4b7c94cdc1a53a36e2e1fd71d13a
HEAD_REF develop
PATCHES
fix-cmake.patch
REF 2.2.2
SHA512 3cb3e97ee1d20e1f3cdf0efcdf55aee0e3a192f9a2ae781cd209b1d37620c48f2ada345fb1f4357315b1cb5e09b7ea5fcdfa2fd54f7b4ac5dcb6e73860000aad
HEAD_REF 2.2.x
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand All @@ -23,10 +21,11 @@ vcpkg_cmake_configure(
-DSKIP_INSTALL_FILES=OFF
-DZLIB_ENABLE_TESTS=OFF
-DZLIBNG_ENABLE_TESTS=OFF
-DWITH_NEW_STRATEGIES=ON
-DWITH_GZFILEOP=ON
-DWITH_NATIVE_INSTRUCTIONS=OFF # `-march=native` breaks `check_c_source_compiles`
OPTIONS_DEBUG
-DWITH_OPTIM=OFF
-DWITH_INFLATE_STRICT=ON
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
Expand Down
2 changes: 1 addition & 1 deletion ports/zlib-ng/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zlib-ng",
"version": "2.1.6",
"version": "2.2.2",
"description": "zlib replacement with optimizations for 'next generation' systems",
"homepage": "https://github.com/zlib-ng/zlib-ng",
"license": "Zlib",
Expand Down
7 changes: 7 additions & 0 deletions ports/zlib/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)

if(VCPKG_TARGET_IS_WINDOWS)
message(STATUS "The port will install 'zlib-ng[zlib-compat]' instead")
else()
message(STATUS "The port is empty. Expect the platform SDK provides ZLIB")
endif()
16 changes: 16 additions & 0 deletions ports/zlib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "zlib",
"version-date": "2024-10-03",
"description": "Redirection to zlib-ng or system installed ZLIB",
"homepage": "https://github.com/zlib-ng/zlib-ng",
"license": "Zlib",
"dependencies": [
{
"name": "zlib-ng",
"features": [
"zlib-compat"
],
"platform": "windows"
}
]
}
6 changes: 5 additions & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,12 @@
"baseline": "2021-10-15",
"port-version": 1
},
"zlib": {
"baseline": "2024-10-03",
"port-version": 0
},
"zlib-ng": {
"baseline": "2.1.6",
"baseline": "2.2.2",
"port-version": 0
}
}
Expand Down
5 changes: 5 additions & 0 deletions versions/z-/zlib-ng.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c199d90e06c3e38a2b4547ba00d11aca04473316",
"version": "2.2.2",
"port-version": 0
},
{
"git-tree": "8eeae331a085e2e8447359500c84bcb701e29eb6",
"version": "2.1.6",
Expand Down
9 changes: 9 additions & 0 deletions versions/z-/zlib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "3b67832abed02d23c17e5098dfc2483015319acb",
"version-date": "2024-10-03",
"port-version": 0
}
]
}

0 comments on commit 2c9269b

Please sign in to comment.