diff options
author | wiz <wiz@pkgsrc.org> | 2020-06-21 10:06:53 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2020-06-21 10:06:53 +0000 |
commit | abf08ef553791122d4f58050e430eac0d7812613 (patch) | |
tree | 45b37bd15fd32a5cafc0ef43968ad26e1678eece | |
parent | 3c8395898d4e95ce87c0e844501fca5575059ab4 (diff) | |
download | pkgsrc-abf08ef553791122d4f58050e430eac0d7812613.tar.gz |
u-boot: make previous more agnostic to python-3.x version
-rw-r--r-- | sysutils/u-boot/u-boot.mk | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sysutils/u-boot/u-boot.mk b/sysutils/u-boot/u-boot.mk index c6bb1ce9946..6aea5e630af 100644 --- a/sysutils/u-boot/u-boot.mk +++ b/sysutils/u-boot/u-boot.mk @@ -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 @@ HOMEPAGE?= https://www.denx.de/wiki/U-Boot 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 @@ LICENSE= gnu-gpl-v2 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) -ALL_ENV+= PYTHON3=${PYTHONBIN} PYTHONCONFIG=${PYTHONCONFIG} -.else +.if ${PYPKGPREFIX} == "py27" ALL_ENV+= PYTHON2=${PYTHONBIN} PYTHONCONFIG=${PYTHONCONFIG} +.else +ALL_ENV+= PYTHON3=${PYTHONBIN} PYTHONCONFIG=${PYTHONCONFIG} .endif ALL_ENV+= PYTHONLIBPATH=-L$(LOCALBASE)/lib |