svn commit: r417484 - head/Mk/Uses

Antoine Brodin antoine at FreeBSD.org
Sat Jun 25 19:51:33 UTC 2016


Author: antoine
Date: Sat Jun 25 19:51:32 2016
New Revision: 417484
URL: https://svnweb.freebsd.org/changeset/ports/417484

Log:
  Reduce a little bit foot shooting for people installing python 3 ports using
  PYTHON_ABIVER/PYTHON_INCLUDEDIR, when they use default options for
  lang/python3x, by providing a reasonable default value to PYTHON_ABIVER
  
  With hat:	portmgr

Modified:
  head/Mk/Uses/python.mk

Modified: head/Mk/Uses/python.mk
==============================================================================
--- head/Mk/Uses/python.mk	Sat Jun 25 19:46:53 2016	(r417483)
+++ head/Mk/Uses/python.mk	Sat Jun 25 19:51:32 2016	(r417484)
@@ -407,8 +407,13 @@ PYTHON_REL=	${PYTHON_PORTVERSION:C/^([0-
 
 # Might be overridden by calling ports
 PYTHON_CMD?=		${_PYTHON_BASECMD}${_PYTHON_VERSION}
-.if exists(${PYTHON_CMD}-config) && ${PYTHON_VER} != 2.7
+.if ${PYTHON_VER} != 2.7
+.if exists(${PYTHON_CMD}-config)
 PYTHON_ABIVER!=		${PYTHON_CMD}-config --abiflags
+.else
+# Default ABI flags for lang/python3x ports
+PYTHON_ABIVER=		m
+.endif
 .endif
 
 .if !defined(PYTHONBASE)


More information about the svn-ports-head mailing list