pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox Fix build. Use Python 2 and 3.5 or later a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/524277015fe2
branches:  trunk
changeset: 382348:524277015fe2
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Fri Jun 29 12:51:55 2018 +0000

description:
Fix build. Use Python 2 and 3.5 or later and increment required versions

Reported from rjs@.

diffstat:

 www/firefox/mozilla-common.mk |  18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diffs (49 lines):

diff -r 6171fc30b1c8 -r 524277015fe2 www/firefox/mozilla-common.mk
--- a/www/firefox/mozilla-common.mk     Fri Jun 29 11:28:05 2018 +0000
+++ b/www/firefox/mozilla-common.mk     Fri Jun 29 12:51:55 2018 +0000
@@ -1,10 +1,21 @@
-# $NetBSD: mozilla-common.mk,v 1.108 2018/03/21 16:06:29 taca Exp $
+# $NetBSD: mozilla-common.mk,v 1.109 2018/06/29 12:51:55 ryoon Exp $
 #
 # common Makefile fragment for mozilla packages based on gecko 2.0.
 #
 # used by www/firefox/Makefile
 # used by www/seamonkey/Makefile
 
+# Python 2.7 and Python 3.5 or later are required simultaneously.
+PYTHON_VERSIONS_ACCEPTED=      27
+PYTHON_FOR_BUILD_ONLY=         tool
+.if !empty(PYTHON_VERSION_DEFAULT:M36) || !empty(PYTHON_VERSION_DEFAULT:M35)
+TOOL_DEPENDS+=         python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT}
+ALL_ENV+=      PYTHON3=${LOCALBASE}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./}
+.else
+TOOL_DEPENDS+=         python36-[0-9]*:../../lang/python36
+ALL_ENV+=      PYTHON3=${LOCALBASE}/bin/python3.6
+.endif
+
 HAS_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --prefix=${PREFIX}
 USE_TOOLS+=            pkg-config perl gmake autoconf213 unzip zip
@@ -36,7 +47,7 @@
 TOOLS_PLATFORM.tar=    ${TOOLS_PATH.bsdtar}
 USE_TOOLS+=            bsdtar
 .endif
-GCC_REQD+=             4.9
+GCC_REQD+=             6.1
 .if ${MACHINE_ARCH} == "i386"
 # Fix for PR pkg/48152.
 CXXFLAGS+=             -march=i586
@@ -192,7 +203,7 @@
 BUILDLINK_API_DEPENDS.nspr+=   nspr>=4.18
 .include "../../devel/nspr/buildlink3.mk"
 .include "../../textproc/icu/buildlink3.mk"
-BUILDLINK_API_DEPENDS.nss+=    nss>=3.35
+BUILDLINK_API_DEPENDS.nss+=    nss>=3.37.3
 .include "../../devel/nss/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
@@ -215,3 +226,4 @@
 .include "../../x11/pixman/buildlink3.mk"
 .include "../../x11/gtk2/buildlink3.mk"
 .include "../../x11/gtk3/buildlink3.mk"
+.include "../../lang/python/pyversion.mk"



Home | Main Index | Thread Index | Old Index