Changeset View
Changeset View
Standalone View
Standalone View
lang/python37/Makefile
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | |||||
# See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 | # See https://bugs.freebsd.org/115940 and https://bugs.freebsd.org/193650 | ||||
.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | .if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) | ||||
PLIST_SUB+= NO_NIS="@comment " | PLIST_SUB+= NO_NIS="@comment " | ||||
DISABLED_EXTENSIONS+= nis | DISABLED_EXTENSIONS+= nis | ||||
.else | .else | ||||
PLIST_SUB+= NO_NIS="" | PLIST_SUB+= NO_NIS="" | ||||
.endif | .endif | ||||
# python37 fails to build ssl module on FreeBSD10 with base SSL because X509_VERIFY_PARAM_set1_host check fails. | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 && ${SSL_DEFAULT} == base | |||||
PLIST_SUB+= NO_SSL="@comment " | |||||
WARNING+= "No SSL support for FreeBSD ${OSREL} with base SSL! OpenSSL must be greater than/equal to 1.0.2" | |||||
.else | |||||
PLIST_SUB+= NO_SSL="" | |||||
.endif | |||||
post-patch: | |||||
# readline shared library is present on base before FreeBSD 11 - r268461 | |||||
# force setup.py ignore base and use readline from ports | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 | |||||
@${REINPLACE_CMD} -e \ | |||||
"s|lib_dirs,\ \'readline\'|[\'${LOCALBASE}/lib\',\ \'.\'],\ \'readline\'|" \ | |||||
${WRKSRC}/setup.py | |||||
.endif | |||||
post-install: | post-install: | ||||
.if ! ${PORT_OPTIONS:MDEBUG} | .if ! ${PORT_OPTIONS:MDEBUG} | ||||
${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975 | ${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: https://bugs.python.org/issue17975 | ||||
.endif | .endif | ||||
# This code block exists for the qemu-user enabled cross build environment. | # This code block exists for the qemu-user enabled cross build environment. | ||||
# When using this environment in poudriere, CC is not set to the default | # When using this environment in poudriere, CC is not set to the default | ||||
# of /usr/bin/cc and a cross-compile toolchain is used. We need to hand | # of /usr/bin/cc and a cross-compile toolchain is used. We need to hand | ||||
# edit this so that the run time configuration for python matches what the | # edit this so that the run time configuration for python matches what the | ||||
Show All 13 Lines |