View | Details | Raw Unified | Return to bug 233835 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-2 / +7 lines)
Lines 14-20 Link Here
14
LICENSE=	MIT
14
LICENSE=	MIT
15
LICENSE_FILE=	${WRKSRC}/LICENSE
15
LICENSE_FILE=	${WRKSRC}/LICENSE
16
16
17
BROKEN_powerpc64=	fails to build: KeyError: 'action'
18
BROKEN_SSL=		openssl libressl libressl-devel
17
BROKEN_SSL=		openssl libressl libressl-devel
19
BROKEN_SSL_REASON=	Node.js 10.x LTS requires OpenSSL 1.1.x or the BUNDLED_SSL option enabled
18
BROKEN_SSL_REASON=	Node.js 10.x LTS requires OpenSSL 1.1.x or the BUNDLED_SSL option enabled
20
ONLY_FOR_ARCHS=		aarch64 amd64 armv6 armv7 i386 powerpc64
19
ONLY_FOR_ARCHS=		aarch64 amd64 armv6 armv7 i386 powerpc64
Lines 33-38 Link Here
33
# dt_modtext:/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(820): arm not implemented
32
# dt_modtext:/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(820): arm not implemented
34
OPTIONS_EXCLUDE_armv6=		DTRACE
33
OPTIONS_EXCLUDE_armv6=		DTRACE
35
OPTIONS_EXCLUDE_armv7=		DTRACE
34
OPTIONS_EXCLUDE_armv7=		DTRACE
35
OPTIONS_EXCLUDE_powerpc64=	DTRACE
36
36
37
BUNDLED_SSL_DESC=		Use node.js's bundled OpenSSL implementation
37
BUNDLED_SSL_DESC=		Use node.js's bundled OpenSSL implementation
38
BUNDLED_SSL_USES_OFF=		ssl
38
BUNDLED_SSL_USES_OFF=		ssl
Lines 76-82 Link Here
76
76
77
.include <bsd.port.pre.mk>
77
.include <bsd.port.pre.mk>
78
78
79
.if ${ARCH} != amd64 && ${ARCH} != i386
79
.if ${ARCH} != amd64 && ${ARCH} != i386 && ${PORT_OPTIONS:MBUNDLED_SSL}
80
CONFIGURE_ARGS+=--openssl-no-asm
80
CONFIGURE_ARGS+=--openssl-no-asm
81
.endif
81
.endif
82
82
Lines 83-93 Link Here
83
.if ${CHOSEN_COMPILER_TYPE} == gcc
83
.if ${CHOSEN_COMPILER_TYPE} == gcc
84
# GCC does not expose std::snprintf() without this define
84
# GCC does not expose std::snprintf() without this define
85
CXXFLAGS+=	-D_GLIBCXX_USE_C99
85
CXXFLAGS+=	-D_GLIBCXX_USE_C99
86
EXTRA_PATCHES=	${FILESDIR}/extra-patch-common.gypi
86
.endif
87
.endif
87
88
88
post-patch:
89
post-patch:
89
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
90
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
90
		${WRKSRC}/deps/v8/gypfiles/v8.gyp
91
		${WRKSRC}/deps/v8/gypfiles/v8.gyp
92
.if ${CHOSEN_COMPILER_TYPE} == gcc
93
	${REINPLACE_CMD} 's|%%GCC_DEFAULT%%|${GCC_DEFAULT}|' \
94
		${WRKSRC}/common.gypi
95
.endif
91
96
92
post-configure:
97
post-configure:
93
	# Post-process Makefile and *.mk files created by node-gyp and remove
98
	# Post-process Makefile and *.mk files created by node-gyp and remove
(-)files/extra-patch-common.gypi (+11 lines)
Line 0 Link Here
1
--- common.gypi.orig	2018-11-29 19:32:11 UTC
2
+++ common.gypi
3
@@ -507,7 +507,7 @@
4
       }],
5
       ['OS=="freebsd"', {
6
         'ldflags': [
7
-          '-Wl,--export-dynamic',
8
+          '-Wl,--export-dynamic -Wl,-rpath=/usr/local/lib/gcc%%GCC_DEFAULT%% -L/usr/local/lib/gcc%%GCC_DEFAULT%%',
9
         ],
10
       }]
11
     ],

Return to bug 233835