aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2016-06-26 03:51:32 +0800
committerantoine <antoine@FreeBSD.org>2016-06-26 03:51:32 +0800
commit21abf91d04f2942995e043a4edde64a24e3ce29c (patch)
tree46afca69cdf1bd922824a92aadc0cc6f544dcfde /Mk
parent9d8caa43a264518d1cd3853d0623ea14af24be87 (diff)
downloadfreebsd-ports-gnome-21abf91d04f2942995e043a4edde64a24e3ce29c.tar.gz
freebsd-ports-gnome-21abf91d04f2942995e043a4edde64a24e3ce29c.tar.zst
freebsd-ports-gnome-21abf91d04f2942995e043a4edde64a24e3ce29c.zip
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
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/python.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk
index ceb6e8d70b76..3877fde8429f 100644
--- a/Mk/Uses/python.mk
+++ b/Mk/Uses/python.mk
@@ -407,8 +407,13 @@ PYTHON_REL= ${PYTHON_PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/:C/\.([0-9]+)$
# 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)