git: 7813c72dd277 - main - archivers/py-zlib-ng: Add an option to use zlib-ng from ports instead of bundled version
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Jan 2025 12:07:26 UTC
The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=7813c72dd2771baf7a4c7e677519d7a8dfc85f26 commit 7813c72dd2771baf7a4c7e677519d7a8dfc85f26 Author: Oleg Sidorkin <osidorkin@gmail.com> AuthorDate: 2025-01-31 12:04:41 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-01-31 12:04:41 +0000 archivers/py-zlib-ng: Add an option to use zlib-ng from ports instead of bundled version Our archivers/zlib-ng version is newer than bundled one so let's add an option to use it instead of bunlded version (off by default). Maybe we'll switch default to archivers/zlib-ng later. PR: 284470 --- archivers/py-zlib-ng/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/archivers/py-zlib-ng/Makefile b/archivers/py-zlib-ng/Makefile index e8c707294e31..9da7a3a139b6 100644 --- a/archivers/py-zlib-ng/Makefile +++ b/archivers/py-zlib-ng/Makefile @@ -19,6 +19,13 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=51:devel/py-setuptools@${PY_FL USES= cmake:indirect python USE_PYTHON= autoplist pep517 +OPTIONS_DEFINE= SYSTEM_ZLIB_NG + +SYSTEM_ZLIB_NG_DESC= Use archivers/zlib-ng instead of bundled version + +SYSTEM_ZLIB_NG_LIB_DEPENDS= libz-ng.so:archivers/zlib-ng +SYSTEM_ZLIB_NG_MAKE_ENV= PYTHON_ZLIB_NG_LINK_DYNAMIC=1 + post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME:S/-/_/}/${PORTNAME:S/-/_/}.cpython-${PYTHON_VER:S/.//}.so