[BACK]Return to dependency.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / py-OpenSSL

File: [cvs.NetBSD.org] / pkgsrc / security / py-OpenSSL / dependency.mk (download)

Revision 1.1, Wed Oct 19 14:17:54 2022 UTC (13 months, 2 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4

fighting a losing battle against the py-cryptography rustification, part 4

Add support for py-OpenSSL to versioned_dependencies.mk

# $NetBSD: dependency.mk,v 1.1 2022/10/19 14:17:54 nia Exp $
#
# Not for public use - use through versioned_dependencies.mk.
#

.include "../../security/py-cryptography/dependency.mk"

.if ${PYCRYPTOGRAPHY_TYPE:tl} == "rust"
PYOPENSSL_VERSION?=	OpenSSL>=0
PYOPENSSL_DIR?=		security/py-OpenSSL
.else
PYOPENSSL_VERSION?=	OpenSSL>=0<22.0.0
PYOPENSSL_DIR?=		security/py27-OpenSSL
.endif

.if "${type}" == ":build"
BUILD_DEPENDS:=	${BUILD_DEPENDS} ${PYPKGPREFIX}-${PYOPENSSL_VERSION}:../../${PYOPENSSL_DIR}
.elif "${type}" == ":test"
TEST_DEPENDS:=	${TEST_DEPENDS} ${PYPKGPREFIX}-${PYOPENSSL_VERSION}:../../${PYOPENSSL_DIR}
.elif "${type}" == ":tool"
TOOL_DEPENDS:=	${TOOL_DEPENDS} ${PYPKGPREFIX}-${PYOPENSSL_VERSION}:../../${PYOPENSSL_DIR}
.else
DEPENDS:=	${DEPENDS} ${PYPKGPREFIX}-${PYOPENSSL_VERSION}:../../${PYOPENSSL_DIR}
.endif