lang/python27: Fix build with 'DEFAULT_VERSIONS=ssl=openssl'

Reported by:	Odhiambo Washington
Approved by:	portmgr blanket (just fix it)
MFH:		2024Q2

(cherry picked from commit 69ce5e29a5)
This commit is contained in:
Yasuhiro Kimura 2024-05-15 12:34:26 +09:00
parent 93f305d488
commit 35b4d1f670
1 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,8 @@ post-patch:
# openssl/opensslv.h so setup.py just detects the string as 00000000
# However care should be taken for the OSVERSION. If OpenSSL 3.0.9
# lands later the OSVERSION string should be fixed accordingly
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && (${SSL_DEFAULT} == base || ${SSL_DEFAULT:Mopenssl3*} )
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && (${SSL_DEFAULT} == base || \
${SSL_DEFAULT} == openssl || ${SSL_DEFAULT:Mopenssl3*} )
@${REINPLACE_CMD} -e 's|00907000|00000000|' \
${WRKSRC}/setup.py
.endif