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

Collapse All | Expand All

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