aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorbhughes <bhughes@FreeBSD.org>2019-01-24 05:22:57 +0800
committerbhughes <bhughes@FreeBSD.org>2019-01-24 05:22:57 +0800
commit0fe11983ff0b440b054b069535af17b91de40880 (patch)
treef31a101630232be7b978e730580089a7a4483d5b /www
parent00c94f16d8b18ffd66e4776365c493b27d7cef6a (diff)
downloadfreebsd-ports-gnome-0fe11983ff0b440b054b069535af17b91de40880.tar.gz
freebsd-ports-gnome-0fe11983ff0b440b054b069535af17b91de40880.tar.zst
freebsd-ports-gnome-0fe11983ff0b440b054b069535af17b91de40880.zip
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
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>