[Midnightbsd-cvs] mports [24491] trunk/lang/python37/Makefile: fix ssl install when we have openssl as default

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Oct 15 15:56:06 EDT 2018


Revision: 24491
          http://svnweb.midnightbsd.org/mports/?rev=24491
Author:   laffer1
Date:     2018-10-15 15:56:05 -0400 (Mon, 15 Oct 2018)
Log Message:
-----------
fix ssl install when we have openssl as default

Modified Paths:
--------------
    trunk/lang/python37/Makefile

Modified: trunk/lang/python37/Makefile
===================================================================
--- trunk/lang/python37/Makefile	2018-10-15 19:29:01 UTC (rev 24490)
+++ trunk/lang/python37/Makefile	2018-10-15 19:56:05 UTC (rev 24491)
@@ -116,9 +116,15 @@
 PLIST_SUB+=	NO_NIS=""
 .endif
 
+.include <bsd.port.pre.mk>
+
 # python37 fails to build ssl module with base SSL because X509_VERIFY_PARAM_set1_host check fails.
+.if ${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"
+WARNING+=	"No SSL support for ${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
@@ -149,4 +155,4 @@
 	${INSTALL_DATA} ${WRKSRC}/Tools/gdb/libpython.py \
 		${STAGEDIR}${PREFIX}/lib/libpython${PYTHON_VER}${ABIFLAGS}.so.1.0-gdb.py
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



More information about the Midnightbsd-cvs mailing list