summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorBradley T. Hughes <bhughes@FreeBSD.org>2019-01-23 21:22:57 +0000
committerBradley T. Hughes <bhughes@FreeBSD.org>2019-01-23 21:22:57 +0000
commit50aae0ccfe95f615d8118246ae04ed7c84adcc3b (patch)
treef31a101630232be7b978e730580089a7a4483d5b /www
parentwww/node10: disable BUNDLED_SSL by default on FreeBSD >=12 (diff)
www/node: disable BUNDLED_SSL by default on FreeBSD >=12
Change the default options on FreeBSD >=12 since OpenSSL 1.1.1 is available in the base system. Bump PORTREVISION due to the change in defaults. While here, convert the port to use BROKEN_SSL, taking care to set BROKEN_SSL+=base when appropriate. PR: 234762 Reported by: amdmi3 Sponsored by: Miles AS
Notes
Notes: svn path=/head/; revision=491060
Diffstat (limited to 'www')
-rw-r--r--www/node/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/www/node/Makefile b/www/node/Makefile
index a30f2941a17a..b91ccc2f54fb 100644
--- a/www/node/Makefile
+++ b/www/node/Makefile
@@ -3,6 +3,7 @@
PORTNAME= node
PORTVERSION= 11.7.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/
@@ -13,10 +14,14 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_powerpc64= fails to build: KeyError: 'action'
+BROKEN_SSL= openssl libressl libressl-devel
+BROKEN_SSL_REASON= Node.js 11.x requires OpenSSL 1.1.x or the BUNDLED_SSL option enabled
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64
OPTIONS_DEFINE= BUNDLED_SSL DOCS NLS DTRACE
-OPTIONS_DEFAULT= BUNDLED_SSL DTRACE
+OPTIONS_DEFAULT= DTRACE
+OPTIONS_DEFAULT_FreeBSD_11= BUNDLED_SSL
+OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}}
OPTIONS_SUB= yes
.if !exists(/usr/sbin/dtrace)
@@ -64,16 +69,8 @@ LIB_DEPENDS+= libcares.so:dns/c-ares\
.include <bsd.port.options.mk>
-.if empty(PORT_OPTIONS:MBUNDLED_SSL)
-
-.if ${OPSYS} == FreeBSD && ${SSL_DEFAULT} != openssl111
-IGNORE= node.js requires openssl 1.1.0, add DEFAULT_VERSIONS+=ssl=openssl111 to /etc/make.conf or enable BUNDLED_SSL option
-.endif
-
-.if !empty(SSL_DEFAULT:Mlibressl*)
-IGNORE= cannot build node.js with LibreSSL. You must enable BUNDLED_SSL
-.endif
-
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085
+BROKEN_SSL+= base
.endif
.include <bsd.port.pre.mk>