Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/u-boot u-boot: make previous more agnostic to...
details: https://anonhg.NetBSD.org/pkgsrc/rev/41a47f7b1f6b
branches: trunk
changeset: 434744:41a47f7b1f6b
user: wiz <wiz%pkgsrc.org@localhost>
date: Sun Jun 21 10:06:53 2020 +0000
description:
u-boot: make previous more agnostic to python-3.x version
diffstat:
sysutils/u-boot/u-boot.mk | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r a6d5b0e24bb4 -r 41a47f7b1f6b sysutils/u-boot/u-boot.mk
--- a/sysutils/u-boot/u-boot.mk Sun Jun 21 09:34:59 2020 +0000
+++ b/sysutils/u-boot/u-boot.mk Sun Jun 21 10:06:53 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: u-boot.mk,v 1.28 2020/06/20 22:26:15 thorpej Exp $
+# $NetBSD: u-boot.mk,v 1.29 2020/06/21 10:06:53 wiz Exp $
.include "../../sysutils/u-boot/u-boot-version.mk"
@@ -13,8 +13,11 @@
MASTER_SITES?= ftp://ftp.denx.de/pub/u-boot/
.if !empty(UBOOT_VERSION:M202[0-9].*)
-PYTHON_VERSIONS_ACCEPTED= 37
+PYTHON_VERSIONS_INCOMPATIBLE= 27
UBOOT_SWIG_VERSION= 3
+.else
+UBOOT_SWIG_VERSION= 3
+PYTHON_VERSIONS_ACCEPTED?= 27
.endif
TOOL_DEPENDS+= dtc>=1.4.2:../../sysutils/dtc
@@ -30,13 +33,12 @@
USE_LANGUAGES= c c++
USE_TOOLS+= bison gmake gsed pkg-config gawk
PYTHON_FOR_BUILD_ONLY= yes
-PYTHON_VERSIONS_ACCEPTED?= 27
.include "../../lang/python/tool.mk"
-.if !empty(_PYTHON_VERSION_37_OK:M)
+.if ${PYPKGPREFIX} == "py27"
+ALL_ENV+= PYTHON2=${PYTHONBIN} PYTHONCONFIG=${PYTHONCONFIG}
+.else
ALL_ENV+= PYTHON3=${PYTHONBIN} PYTHONCONFIG=${PYTHONCONFIG}
-.else
-ALL_ENV+= PYTHON2=${PYTHONBIN} PYTHONCONFIG=${PYTHONCONFIG}
.endif
ALL_ENV+= PYTHONLIBPATH=-L$(LOCALBASE)/lib
Home |
Main Index |
Thread Index |
Old Index