diff options
author | nia <nia@pkgsrc.org> | 2020-12-22 13:34:25 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-12-22 13:34:25 +0000 |
commit | 003746b3293303b950dead95dbf989ed0ac0b6a3 (patch) | |
tree | 0bae8680752f4451d84f79e6327f91a37d1b682a /www/seamonkey | |
parent | f68b7e7c097947c1378ad80eee2c8263d4eeef98 (diff) | |
download | pkgsrc-003746b3293303b950dead95dbf989ed0ac0b6a3.tar.gz |
seamonkey: build fix: make Python requirements explicit
Likely this is needed because gtk2 no longer provides python2.
Diffstat (limited to 'www/seamonkey')
-rw-r--r-- | www/seamonkey/mozilla-common.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/www/seamonkey/mozilla-common.mk b/www/seamonkey/mozilla-common.mk index 2658806f761..312d80dd388 100644 --- a/www/seamonkey/mozilla-common.mk +++ b/www/seamonkey/mozilla-common.mk @@ -1,4 +1,4 @@ -# $NetBSD: mozilla-common.mk,v 1.4 2020/06/28 11:32:04 nia Exp $ +# $NetBSD: mozilla-common.mk,v 1.5 2020/12/22 13:34:25 nia Exp $ # # common Makefile fragment for mozilla packages based on gecko 2.0. # @@ -14,6 +14,19 @@ GCC_REQD+= 4.9 .include "../../mk/bsd.prefs.mk" +# Python 2.7 and Python 3.6 or later are required simultaneously. +PYTHON_VERSIONS_ACCEPTED= 27 +PYTHON_FOR_BUILD_ONLY= tool +.if !empty(PYTHON_VERSION_DEFAULT:M3[6789]) +TOOL_DEPENDS+= python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT} +ALL_ENV+= PYTHON3=${PREFIX}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./} +.else +TOOL_DEPENDS+= python38-[0-9]*:../../lang/python38 +ALL_ENV+= PYTHON3=${PREFIX}/bin/python3.8 +.endif + +.include "../../lang/python/pyversion.mk" + .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" BUILD_DEPENDS+= yasm>=1.1:../../devel/yasm |