-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the zlib port implementation and instead create an empty zlib port that depends on zlib-ng.
- Loading branch information
1 parent
e82dce6
commit bb3d98d
Showing
6 changed files
with
13 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ repos: | |
owner: unicode-org | ||
repo: icu | ||
|
||
zlib: | ||
zlib-ng: | ||
host: github | ||
owner: zlib-ng | ||
repo: zlib-ng | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,2 @@ | ||
set(VERSION 2.2.2) | ||
|
||
set(FILENAME "zlib-ng-${VERSION}.zip") | ||
set(URLS "https://github.com/zlib-ng/zlib-ng/archive/refs/tags/${VERSION}.zip") | ||
|
||
# Get archive | ||
vcpkg_download_distfile(ARCHIVE | ||
URLS ${URLS} | ||
FILENAME ${FILENAME} | ||
SHA512 98586b3ce67bf481ccb94f3263340dffde10c3735218b0c60173a91fe931f4e40a772691c7d19b691a167ae9709f62efcc247c2711d15cf19ca3bd318cab9689 | ||
) | ||
|
||
# Extract archive | ||
vcpkg_extract_source_archive_ex( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
ARCHIVE ${ARCHIVE} | ||
REF ${VERSION} | ||
PATCHES ${PATCHES} | ||
) | ||
|
||
# Run CMake build | ||
vcpkg_cmake_configure( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
OPTIONS | ||
-DZLIB_COMPAT=ON | ||
-DZLIB_ENABLE_TESTS=OFF | ||
OPTIONS_DEBUG | ||
-DSKIP_INSTALL_HEADERS=ON | ||
) | ||
|
||
vcpkg_cmake_install() | ||
vcpkg_copy_pdbs() | ||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ZLIB) | ||
vcpkg_fixup_pkgconfig() | ||
|
||
# Prepare distribution | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) | ||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/zlib RENAME copyright) | ||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/zlib/version "${VERSION}") | ||
# Mapping zlib-ng to zlib | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
{ | ||
"name": "zlib", | ||
"version": "2.2.2", | ||
"version-string": "zlib-ng", | ||
"description": "A compression library", | ||
"homepage": "https://github.com/zlib-ng/zlib-ng", | ||
"license": "Zlib", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
"zlib-ng" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters