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

Collapse All | Expand All

(-)b/www/node/Makefile (-4 / +35 lines)
Lines 3-8 Link Here
3
PORTNAME=	node
3
PORTNAME=	node
4
PORTVERSION=	6.2.1
4
PORTVERSION=	6.2.1
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
PORTREVISION=	1
6
CATEGORIES=	www
7
CATEGORIES=	www
7
MASTER_SITES=	http://nodejs.org/dist/v${PORTVERSION}/
8
MASTER_SITES=	http://nodejs.org/dist/v${PORTVERSION}/
8
9
Lines 12-33 COMMENT= V8 JavaScript for client and server (6.x) Link Here
12
LICENSE=	MIT
13
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
15
OPTIONS_DEFINE=	DOCS
16
OPTIONS_DEFINE=	BUNDLED_SSL DOCS
17
OPTIONS_SUB=	yes
16
18
17
USES=		compiler execinfo gmake python:2
19
BUNDLED_SSL_DESC=	Use node.js's bundled OpenSSL implementation
20
BUNDLED_SSL_USE_OFF=	OPENSSL=yes
21
22
USES=		compiler execinfo gmake python:2 localbase
18
HAS_CONFIGURE=	yes
23
HAS_CONFIGURE=	yes
19
USE_LDCONFIG=	yes
24
USE_LDCONFIG=	yes
20
25
21
CONFLICTS_INSTALL=	node4-* node-0.[02-9][0-9]* node-devel-0.[0-9]* node010-[0-9]* node012-[0-9]* iojs-[0-9]*
26
CONFLICTS_INSTALL=	node4-* node-0.[02-9][0-9]* node-devel-0.[0-9]* node010-[0-9]* node012-[0-9]* iojs-[0-9]*
22
27
23
ONLY_FOR_ARCHS=	i386 amd64 armv6
28
ONLY_FOR_ARCHS=	i386 amd64 armv6
24
CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST} --without-npm --shared-zlib
29
CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST} \
30
		--without-npm \
31
		--shared-cares \
32
		--shared-libuv \
33
		--shared-zlib
25
PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
34
PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
26
REINPLACE_ARGS=	-i ''
35
REINPLACE_ARGS=	-i ''
27
MAKE_ENV+=	CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
36
MAKE_ENV+=	CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX} LDFLAGS.host="${LDFLAGS}" LDFLAGS.target="${LDFLAGS}"
37
38
LIB_DEPENDS+=	libcares.so:dns/c-ares\
39
		libuv.so:devel/libuv
40
41
.include <bsd.port.options.mk>
42
43
.if empty(PORT_OPTIONS:MBUNDLED_SSL)
44
45
.if ${OSVERSION} < 1100085
46
# node.js requires openssl 1.0.2, use the port since base isn't new enough
47
WITH_OPENSSL_PORT=	yes
48
.endif
49
50
CONFIGURE_ARGS+=	--shared-openssl
51
52
.endif
28
53
29
.include <bsd.port.pre.mk>
54
.include <bsd.port.pre.mk>
30
55
56
.if empty(PORT_OPTIONS:MBUNDLED_SSL)
57
.if defined(OPENSSL_PORT) && (${OPENSSL_PORT} == "security/libressl" || ${OPENSSL_PORT} == "security/libressl-devel")
58
IGNORE=		cannot build node.js with LibreSSL. You must enable BUNDLED_SSL
59
.endif
60
.endif
61
31
.if ${ARCH} == "armv6"
62
.if ${ARCH} == "armv6"
32
CONFIGURE_ARGS=	--openssl-no-asm
63
CONFIGURE_ARGS=	--openssl-no-asm
33
.endif
64
.endif
(-)b/www/node/pkg-plist (-115 / +94 lines)
Lines 1-126 Link Here
1
bin/node
1
bin/node
2
include/node/android-ifaddrs.h
3
include/node/ares.h
4
include/node/ares_build.h
5
include/node/ares_rules.h
6
include/node/ares_version.h
7
include/node/common.gypi
2
include/node/common.gypi
8
include/node/config.gypi
3
include/node/config.gypi
9
include/node/libplatform/libplatform.h
4
include/node/libplatform/libplatform.h
10
include/node/nameser.h
11
include/node/node.h
5
include/node/node.h
12
include/node/node_buffer.h
6
include/node/node_buffer.h
13
include/node/node_object_wrap.h
7
include/node/node_object_wrap.h
14
include/node/node_version.h
8
include/node/node_version.h
15
include/node/openssl/aes.h
9
%%BUNDLED_SSL%%include/node/openssl/aes.h
16
include/node/openssl/archs/BSD-x86/opensslconf.h
10
%%BUNDLED_SSL%%include/node/openssl/archs/BSD-x86/opensslconf.h
17
include/node/openssl/archs/BSD-x86_64/opensslconf.h
11
%%BUNDLED_SSL%%include/node/openssl/archs/BSD-x86_64/opensslconf.h
18
include/node/openssl/archs/VC-WIN32/opensslconf.h
12
%%BUNDLED_SSL%%include/node/openssl/archs/VC-WIN32/opensslconf.h
19
include/node/openssl/archs/VC-WIN64A/opensslconf.h
13
%%BUNDLED_SSL%%include/node/openssl/archs/VC-WIN64A/opensslconf.h
20
include/node/openssl/archs/aix-gcc/opensslconf.h
14
%%BUNDLED_SSL%%include/node/openssl/archs/aix-gcc/opensslconf.h
21
include/node/openssl/archs/aix64-gcc/opensslconf.h
15
%%BUNDLED_SSL%%include/node/openssl/archs/aix64-gcc/opensslconf.h
22
include/node/openssl/archs/darwin-i386-cc/opensslconf.h
16
%%BUNDLED_SSL%%include/node/openssl/archs/darwin-i386-cc/opensslconf.h
23
include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h
17
%%BUNDLED_SSL%%include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h
24
include/node/openssl/archs/linux-aarch64/opensslconf.h
18
%%BUNDLED_SSL%%include/node/openssl/archs/linux-aarch64/opensslconf.h
25
include/node/openssl/archs/linux-armv4/opensslconf.h
19
%%BUNDLED_SSL%%include/node/openssl/archs/linux-armv4/opensslconf.h
26
include/node/openssl/archs/linux-elf/opensslconf.h
20
%%BUNDLED_SSL%%include/node/openssl/archs/linux-elf/opensslconf.h
27
include/node/openssl/archs/linux-ppc/opensslconf.h
21
%%BUNDLED_SSL%%include/node/openssl/archs/linux-ppc/opensslconf.h
28
include/node/openssl/archs/linux-ppc64/opensslconf.h
22
%%BUNDLED_SSL%%include/node/openssl/archs/linux-ppc64/opensslconf.h
29
include/node/openssl/archs/linux-x32/opensslconf.h
23
%%BUNDLED_SSL%%include/node/openssl/archs/linux-x32/opensslconf.h
30
include/node/openssl/archs/linux-x86_64/opensslconf.h
24
%%BUNDLED_SSL%%include/node/openssl/archs/linux-x86_64/opensslconf.h
31
include/node/openssl/archs/linux32-s390x/opensslconf.h
25
%%BUNDLED_SSL%%include/node/openssl/archs/linux32-s390x/opensslconf.h
32
include/node/openssl/archs/linux64-s390x/opensslconf.h
26
%%BUNDLED_SSL%%include/node/openssl/archs/linux64-s390x/opensslconf.h
33
include/node/openssl/archs/solaris-x86-gcc/opensslconf.h
27
%%BUNDLED_SSL%%include/node/openssl/archs/solaris-x86-gcc/opensslconf.h
34
include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h
28
%%BUNDLED_SSL%%include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h
35
include/node/openssl/asn1.h
29
%%BUNDLED_SSL%%include/node/openssl/asn1.h
36
include/node/openssl/asn1_mac.h
30
%%BUNDLED_SSL%%include/node/openssl/asn1_mac.h
37
include/node/openssl/asn1t.h
31
%%BUNDLED_SSL%%include/node/openssl/asn1t.h
38
include/node/openssl/bio.h
32
%%BUNDLED_SSL%%include/node/openssl/bio.h
39
include/node/openssl/blowfish.h
33
%%BUNDLED_SSL%%include/node/openssl/blowfish.h
40
include/node/openssl/bn.h
34
%%BUNDLED_SSL%%include/node/openssl/bn.h
41
include/node/openssl/buffer.h
35
%%BUNDLED_SSL%%include/node/openssl/buffer.h
42
include/node/openssl/camellia.h
36
%%BUNDLED_SSL%%include/node/openssl/camellia.h
43
include/node/openssl/cast.h
37
%%BUNDLED_SSL%%include/node/openssl/cast.h
44
include/node/openssl/cmac.h
38
%%BUNDLED_SSL%%include/node/openssl/cmac.h
45
include/node/openssl/cms.h
39
%%BUNDLED_SSL%%include/node/openssl/cms.h
46
include/node/openssl/comp.h
40
%%BUNDLED_SSL%%include/node/openssl/comp.h
47
include/node/openssl/conf.h
41
%%BUNDLED_SSL%%include/node/openssl/conf.h
48
include/node/openssl/conf_api.h
42
%%BUNDLED_SSL%%include/node/openssl/conf_api.h
49
include/node/openssl/crypto.h
43
%%BUNDLED_SSL%%include/node/openssl/crypto.h
50
include/node/openssl/des.h
44
%%BUNDLED_SSL%%include/node/openssl/des.h
51
include/node/openssl/des_old.h
45
%%BUNDLED_SSL%%include/node/openssl/des_old.h
52
include/node/openssl/dh.h
46
%%BUNDLED_SSL%%include/node/openssl/dh.h
53
include/node/openssl/dsa.h
47
%%BUNDLED_SSL%%include/node/openssl/dsa.h
54
include/node/openssl/dso.h
48
%%BUNDLED_SSL%%include/node/openssl/dso.h
55
include/node/openssl/dtls1.h
49
%%BUNDLED_SSL%%include/node/openssl/dtls1.h
56
include/node/openssl/e_os2.h
50
%%BUNDLED_SSL%%include/node/openssl/e_os2.h
57
include/node/openssl/ebcdic.h
51
%%BUNDLED_SSL%%include/node/openssl/ebcdic.h
58
include/node/openssl/ec.h
52
%%BUNDLED_SSL%%include/node/openssl/ec.h
59
include/node/openssl/ecdh.h
53
%%BUNDLED_SSL%%include/node/openssl/ecdh.h
60
include/node/openssl/ecdsa.h
54
%%BUNDLED_SSL%%include/node/openssl/ecdsa.h
61
include/node/openssl/engine.h
55
%%BUNDLED_SSL%%include/node/openssl/engine.h
62
include/node/openssl/err.h
56
%%BUNDLED_SSL%%include/node/openssl/err.h
63
include/node/openssl/evp.h
57
%%BUNDLED_SSL%%include/node/openssl/evp.h
64
include/node/openssl/hmac.h
58
%%BUNDLED_SSL%%include/node/openssl/hmac.h
65
include/node/openssl/idea.h
59
%%BUNDLED_SSL%%include/node/openssl/idea.h
66
include/node/openssl/krb5_asn.h
60
%%BUNDLED_SSL%%include/node/openssl/krb5_asn.h
67
include/node/openssl/kssl.h
61
%%BUNDLED_SSL%%include/node/openssl/kssl.h
68
include/node/openssl/lhash.h
62
%%BUNDLED_SSL%%include/node/openssl/lhash.h
69
include/node/openssl/md4.h
63
%%BUNDLED_SSL%%include/node/openssl/md4.h
70
include/node/openssl/md5.h
64
%%BUNDLED_SSL%%include/node/openssl/md5.h
71
include/node/openssl/mdc2.h
65
%%BUNDLED_SSL%%include/node/openssl/mdc2.h
72
include/node/openssl/modes.h
66
%%BUNDLED_SSL%%include/node/openssl/modes.h
73
include/node/openssl/obj_mac.h
67
%%BUNDLED_SSL%%include/node/openssl/obj_mac.h
74
include/node/openssl/objects.h
68
%%BUNDLED_SSL%%include/node/openssl/objects.h
75
include/node/openssl/ocsp.h
69
%%BUNDLED_SSL%%include/node/openssl/ocsp.h
76
include/node/openssl/opensslconf.h
70
%%BUNDLED_SSL%%include/node/openssl/opensslconf.h
77
include/node/openssl/opensslv.h
71
%%BUNDLED_SSL%%include/node/openssl/opensslv.h
78
include/node/openssl/ossl_typ.h
72
%%BUNDLED_SSL%%include/node/openssl/ossl_typ.h
79
include/node/openssl/pem.h
73
%%BUNDLED_SSL%%include/node/openssl/pem.h
80
include/node/openssl/pem2.h
74
%%BUNDLED_SSL%%include/node/openssl/pem2.h
81
include/node/openssl/pkcs12.h
75
%%BUNDLED_SSL%%include/node/openssl/pkcs12.h
82
include/node/openssl/pkcs7.h
76
%%BUNDLED_SSL%%include/node/openssl/pkcs7.h
83
include/node/openssl/pqueue.h
77
%%BUNDLED_SSL%%include/node/openssl/pqueue.h
84
include/node/openssl/rand.h
78
%%BUNDLED_SSL%%include/node/openssl/rand.h
85
include/node/openssl/rc2.h
79
%%BUNDLED_SSL%%include/node/openssl/rc2.h
86
include/node/openssl/rc4.h
80
%%BUNDLED_SSL%%include/node/openssl/rc4.h
87
include/node/openssl/ripemd.h
81
%%BUNDLED_SSL%%include/node/openssl/ripemd.h
88
include/node/openssl/rsa.h
82
%%BUNDLED_SSL%%include/node/openssl/rsa.h
89
include/node/openssl/safestack.h
83
%%BUNDLED_SSL%%include/node/openssl/safestack.h
90
include/node/openssl/seed.h
84
%%BUNDLED_SSL%%include/node/openssl/seed.h
91
include/node/openssl/sha.h
85
%%BUNDLED_SSL%%include/node/openssl/sha.h
92
include/node/openssl/srp.h
86
%%BUNDLED_SSL%%include/node/openssl/srp.h
93
include/node/openssl/srtp.h
87
%%BUNDLED_SSL%%include/node/openssl/srtp.h
94
include/node/openssl/ssl.h
88
%%BUNDLED_SSL%%include/node/openssl/ssl.h
95
include/node/openssl/ssl2.h
89
%%BUNDLED_SSL%%include/node/openssl/ssl2.h
96
include/node/openssl/ssl23.h
90
%%BUNDLED_SSL%%include/node/openssl/ssl23.h
97
include/node/openssl/ssl3.h
91
%%BUNDLED_SSL%%include/node/openssl/ssl3.h
98
include/node/openssl/stack.h
92
%%BUNDLED_SSL%%include/node/openssl/stack.h
99
include/node/openssl/symhacks.h
93
%%BUNDLED_SSL%%include/node/openssl/symhacks.h
100
include/node/openssl/tls1.h
94
%%BUNDLED_SSL%%include/node/openssl/tls1.h
101
include/node/openssl/ts.h
95
%%BUNDLED_SSL%%include/node/openssl/ts.h
102
include/node/openssl/txt_db.h
96
%%BUNDLED_SSL%%include/node/openssl/txt_db.h
103
include/node/openssl/ui.h
97
%%BUNDLED_SSL%%include/node/openssl/ui.h
104
include/node/openssl/ui_compat.h
98
%%BUNDLED_SSL%%include/node/openssl/ui_compat.h
105
include/node/openssl/whrlpool.h
99
%%BUNDLED_SSL%%include/node/openssl/whrlpool.h
106
include/node/openssl/x509.h
100
%%BUNDLED_SSL%%include/node/openssl/x509.h
107
include/node/openssl/x509_vfy.h
101
%%BUNDLED_SSL%%include/node/openssl/x509_vfy.h
108
include/node/openssl/x509v3.h
102
%%BUNDLED_SSL%%include/node/openssl/x509v3.h
109
include/node/pthread-barrier.h
110
include/node/pthread-fixes.h
111
include/node/stdint-msvc2008.h
112
include/node/tree.h
113
include/node/uv-aix.h
114
include/node/uv-bsd.h
115
include/node/uv-darwin.h
116
include/node/uv-errno.h
117
include/node/uv-linux.h
118
include/node/uv-sunos.h
119
include/node/uv-threadpool.h
120
include/node/uv-unix.h
121
include/node/uv-version.h
122
include/node/uv-win.h
123
include/node/uv.h
124
include/node/v8-debug.h
103
include/node/v8-debug.h
125
include/node/v8-experimental.h
104
include/node/v8-experimental.h
126
include/node/v8-platform.h
105
include/node/v8-platform.h
(-)b/www/node4/Makefile (-4 / +33 lines)
Lines 4-9 Link Here
4
PORTNAME=	node
4
PORTNAME=	node
5
PORTVERSION=	4.4.5
5
PORTVERSION=	4.4.5
6
DISTVERSIONPREFIX=	v
6
DISTVERSIONPREFIX=	v
7
PORTREVISION=	1
7
CATEGORIES=	www
8
CATEGORIES=	www
8
MASTER_SITES=	http://nodejs.org/dist/v${PORTVERSION}/
9
MASTER_SITES=	http://nodejs.org/dist/v${PORTVERSION}/
9
PKGNAMESUFFIX=	4
10
PKGNAMESUFFIX=	4
Lines 14-35 COMMENT= V8 JavaScript for client and server (4.x LTS) Link Here
14
LICENSE=	MIT
15
LICENSE=	MIT
15
LICENSE_FILE=	${WRKSRC}/LICENSE
16
LICENSE_FILE=	${WRKSRC}/LICENSE
16
17
17
OPTIONS_DEFINE=	DOCS
18
OPTIONS_DEFINE=	BUNDLED_SSL DOCS
19
OPTIONS_SUB=	yes
18
20
19
USES=		compiler execinfo gmake python:2
21
BUNDLED_SSL_DESC=	Use node.js's bundled OpenSSL implementation
22
BUNDLED_SSL_USE_OFF=	OPENSSL=yes
23
24
USES=		compiler execinfo gmake python:2 localbase
20
HAS_CONFIGURE=	yes
25
HAS_CONFIGURE=	yes
21
USE_LDCONFIG=	yes
26
USE_LDCONFIG=	yes
22
27
23
CONFLICTS_INSTALL=	node-[0-9]* node-devel-0.[0-9]* node010-[0-9]* node012-[0-9]* iojs-[0-9]* node5-[0-9]*
28
CONFLICTS_INSTALL=	node-[0-9]* node-devel-0.[0-9]* node010-[0-9]* node012-[0-9]* iojs-[0-9]* node5-[0-9]*
24
29
25
ONLY_FOR_ARCHS=	i386 amd64
30
ONLY_FOR_ARCHS=	i386 amd64
26
CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST} --without-npm --shared-zlib
31
CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST} \
32
	 	--without-npm \
33
		--shared-libuv \
34
		--shared-zlib
27
PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
35
PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
28
REINPLACE_ARGS=	-i ''
36
REINPLACE_ARGS=	-i ''
29
MAKE_ENV+=	CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
37
MAKE_ENV+=	CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX} LDFLAGS.host="${LDFLAGS}" LDFLAGS.target="${LDFLAGS}"
38
39
LIB_DEPENDS+=	libuv.so:devel/libuv
40
41
.include <bsd.port.options.mk>
42
43
.if empty(PORT_OPTIONS:MBUNDLED_SSL)
44
45
.if ${OSVERSION} < 1100085
46
# node.js requires openssl 1.0.2, use the port since base isn't new enough
47
WITH_OPENSSL_PORT=yes
48
.endif
49
50
CONFIGURE_ARGS+=	--shared-openssl
51
52
.endif
30
53
31
.include <bsd.port.pre.mk>
54
.include <bsd.port.pre.mk>
32
55
56
.if empty(PORT_OPTIONS:MBUNDLED_SSL)
57
.if defined(OPENSSL_PORT) && (${OPENSSL_PORT} == "security/libressl" || ${OPENSSL_PORT} == "security/libressl-devel")
58
IGNORE=		cannot build node.js with LibreSSL. You must enable BUNDLED_SSL
59
.endif
60
.endif
61
33
.if ${COMPILER_TYPE} == clang
62
.if ${COMPILER_TYPE} == clang
34
MAKE_ENV+=	LINK=clang++
63
MAKE_ENV+=	LINK=clang++
35
CFLAGS+=	-Wno-unused-private-field
64
CFLAGS+=	-Wno-unused-private-field
(-)b/www/node4/pkg-plist (-107 / +92 lines)
Lines 1-5 Link Here
1
bin/node
1
bin/node
2
include/node/android-ifaddrs.h
3
include/node/ares.h
2
include/node/ares.h
4
include/node/ares_version.h
3
include/node/ares_version.h
5
include/node/common.gypi
4
include/node/common.gypi
Lines 11-122 include/node/node_buffer.h Link Here
11
include/node/node_internals.h
10
include/node/node_internals.h
12
include/node/node_object_wrap.h
11
include/node/node_object_wrap.h
13
include/node/node_version.h
12
include/node/node_version.h
14
include/node/openssl/aes.h
13
%%BUNDLED_SSL%%include/node/openssl/aes.h
15
include/node/openssl/archs/BSD-x86/opensslconf.h
14
%%BUNDLED_SSL%%include/node/openssl/archs/BSD-x86/opensslconf.h
16
include/node/openssl/archs/BSD-x86_64/opensslconf.h
15
%%BUNDLED_SSL%%include/node/openssl/archs/BSD-x86_64/opensslconf.h
17
include/node/openssl/archs/VC-WIN32/opensslconf.h
16
%%BUNDLED_SSL%%include/node/openssl/archs/VC-WIN32/opensslconf.h
18
include/node/openssl/archs/VC-WIN64A/opensslconf.h
17
%%BUNDLED_SSL%%include/node/openssl/archs/VC-WIN64A/opensslconf.h
19
include/node/openssl/archs/aix-gcc/opensslconf.h
18
%%BUNDLED_SSL%%include/node/openssl/archs/aix-gcc/opensslconf.h
20
include/node/openssl/archs/aix64-gcc/opensslconf.h
19
%%BUNDLED_SSL%%include/node/openssl/archs/aix64-gcc/opensslconf.h
21
include/node/openssl/archs/darwin-i386-cc/opensslconf.h
20
%%BUNDLED_SSL%%include/node/openssl/archs/darwin-i386-cc/opensslconf.h
22
include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h
21
%%BUNDLED_SSL%%include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h
23
include/node/openssl/archs/linux-aarch64/opensslconf.h
22
%%BUNDLED_SSL%%include/node/openssl/archs/linux-aarch64/opensslconf.h
24
include/node/openssl/archs/linux-armv4/opensslconf.h
23
%%BUNDLED_SSL%%include/node/openssl/archs/linux-armv4/opensslconf.h
25
include/node/openssl/archs/linux-elf/opensslconf.h
24
%%BUNDLED_SSL%%include/node/openssl/archs/linux-elf/opensslconf.h
26
include/node/openssl/archs/linux-ppc/opensslconf.h
25
%%BUNDLED_SSL%%include/node/openssl/archs/linux-ppc/opensslconf.h
27
include/node/openssl/archs/linux-ppc64/opensslconf.h
26
%%BUNDLED_SSL%%include/node/openssl/archs/linux-ppc64/opensslconf.h
28
include/node/openssl/archs/linux-x32/opensslconf.h
27
%%BUNDLED_SSL%%include/node/openssl/archs/linux-x32/opensslconf.h
29
include/node/openssl/archs/linux-x86_64/opensslconf.h
28
%%BUNDLED_SSL%%include/node/openssl/archs/linux-x86_64/opensslconf.h
30
include/node/openssl/archs/solaris-x86-gcc/opensslconf.h
29
%%BUNDLED_SSL%%include/node/openssl/archs/solaris-x86-gcc/opensslconf.h
31
include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h
30
%%BUNDLED_SSL%%include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h
32
include/node/openssl/asn1.h
31
%%BUNDLED_SSL%%include/node/openssl/asn1.h
33
include/node/openssl/asn1_mac.h
32
%%BUNDLED_SSL%%include/node/openssl/asn1_mac.h
34
include/node/openssl/asn1t.h
33
%%BUNDLED_SSL%%include/node/openssl/asn1t.h
35
include/node/openssl/bio.h
34
%%BUNDLED_SSL%%include/node/openssl/bio.h
36
include/node/openssl/blowfish.h
35
%%BUNDLED_SSL%%include/node/openssl/blowfish.h
37
include/node/openssl/bn.h
36
%%BUNDLED_SSL%%include/node/openssl/bn.h
38
include/node/openssl/buffer.h
37
%%BUNDLED_SSL%%include/node/openssl/buffer.h
39
include/node/openssl/camellia.h
38
%%BUNDLED_SSL%%include/node/openssl/camellia.h
40
include/node/openssl/cast.h
39
%%BUNDLED_SSL%%include/node/openssl/cast.h
41
include/node/openssl/cmac.h
40
%%BUNDLED_SSL%%include/node/openssl/cmac.h
42
include/node/openssl/cms.h
41
%%BUNDLED_SSL%%include/node/openssl/cms.h
43
include/node/openssl/comp.h
42
%%BUNDLED_SSL%%include/node/openssl/comp.h
44
include/node/openssl/conf.h
43
%%BUNDLED_SSL%%include/node/openssl/conf.h
45
include/node/openssl/conf_api.h
44
%%BUNDLED_SSL%%include/node/openssl/conf_api.h
46
include/node/openssl/crypto.h
45
%%BUNDLED_SSL%%include/node/openssl/crypto.h
47
include/node/openssl/des.h
46
%%BUNDLED_SSL%%include/node/openssl/des.h
48
include/node/openssl/des_old.h
47
%%BUNDLED_SSL%%include/node/openssl/des_old.h
49
include/node/openssl/dh.h
48
%%BUNDLED_SSL%%include/node/openssl/dh.h
50
include/node/openssl/dsa.h
49
%%BUNDLED_SSL%%include/node/openssl/dsa.h
51
include/node/openssl/dso.h
50
%%BUNDLED_SSL%%include/node/openssl/dso.h
52
include/node/openssl/dtls1.h
51
%%BUNDLED_SSL%%include/node/openssl/dtls1.h
53
include/node/openssl/e_os2.h
52
%%BUNDLED_SSL%%include/node/openssl/e_os2.h
54
include/node/openssl/ebcdic.h
53
%%BUNDLED_SSL%%include/node/openssl/ebcdic.h
55
include/node/openssl/ec.h
54
%%BUNDLED_SSL%%include/node/openssl/ec.h
56
include/node/openssl/ecdh.h
55
%%BUNDLED_SSL%%include/node/openssl/ecdh.h
57
include/node/openssl/ecdsa.h
56
%%BUNDLED_SSL%%include/node/openssl/ecdsa.h
58
include/node/openssl/engine.h
57
%%BUNDLED_SSL%%include/node/openssl/engine.h
59
include/node/openssl/err.h
58
%%BUNDLED_SSL%%include/node/openssl/err.h
60
include/node/openssl/evp.h
59
%%BUNDLED_SSL%%include/node/openssl/evp.h
61
include/node/openssl/hmac.h
60
%%BUNDLED_SSL%%include/node/openssl/hmac.h
62
include/node/openssl/idea.h
61
%%BUNDLED_SSL%%include/node/openssl/idea.h
63
include/node/openssl/krb5_asn.h
62
%%BUNDLED_SSL%%include/node/openssl/krb5_asn.h
64
include/node/openssl/kssl.h
63
%%BUNDLED_SSL%%include/node/openssl/kssl.h
65
include/node/openssl/lhash.h
64
%%BUNDLED_SSL%%include/node/openssl/lhash.h
66
include/node/openssl/md4.h
65
%%BUNDLED_SSL%%include/node/openssl/md4.h
67
include/node/openssl/md5.h
66
%%BUNDLED_SSL%%include/node/openssl/md5.h
68
include/node/openssl/mdc2.h
67
%%BUNDLED_SSL%%include/node/openssl/mdc2.h
69
include/node/openssl/modes.h
68
%%BUNDLED_SSL%%include/node/openssl/modes.h
70
include/node/openssl/obj_mac.h
69
%%BUNDLED_SSL%%include/node/openssl/obj_mac.h
71
include/node/openssl/objects.h
70
%%BUNDLED_SSL%%include/node/openssl/objects.h
72
include/node/openssl/ocsp.h
71
%%BUNDLED_SSL%%include/node/openssl/ocsp.h
73
include/node/openssl/opensslconf.h
72
%%BUNDLED_SSL%%include/node/openssl/opensslconf.h
74
include/node/openssl/opensslv.h
73
%%BUNDLED_SSL%%include/node/openssl/opensslv.h
75
include/node/openssl/ossl_typ.h
74
%%BUNDLED_SSL%%include/node/openssl/ossl_typ.h
76
include/node/openssl/pem.h
75
%%BUNDLED_SSL%%include/node/openssl/pem.h
77
include/node/openssl/pem2.h
76
%%BUNDLED_SSL%%include/node/openssl/pem2.h
78
include/node/openssl/pkcs12.h
77
%%BUNDLED_SSL%%include/node/openssl/pkcs12.h
79
include/node/openssl/pkcs7.h
78
%%BUNDLED_SSL%%include/node/openssl/pkcs7.h
80
include/node/openssl/pqueue.h
79
%%BUNDLED_SSL%%include/node/openssl/pqueue.h
81
include/node/openssl/rand.h
80
%%BUNDLED_SSL%%include/node/openssl/rand.h
82
include/node/openssl/rc2.h
81
%%BUNDLED_SSL%%include/node/openssl/rc2.h
83
include/node/openssl/rc4.h
82
%%BUNDLED_SSL%%include/node/openssl/rc4.h
84
include/node/openssl/ripemd.h
83
%%BUNDLED_SSL%%include/node/openssl/ripemd.h
85
include/node/openssl/rsa.h
84
%%BUNDLED_SSL%%include/node/openssl/rsa.h
86
include/node/openssl/safestack.h
85
%%BUNDLED_SSL%%include/node/openssl/safestack.h
87
include/node/openssl/seed.h
86
%%BUNDLED_SSL%%include/node/openssl/seed.h
88
include/node/openssl/sha.h
87
%%BUNDLED_SSL%%include/node/openssl/sha.h
89
include/node/openssl/srp.h
88
%%BUNDLED_SSL%%include/node/openssl/srp.h
90
include/node/openssl/srtp.h
89
%%BUNDLED_SSL%%include/node/openssl/srtp.h
91
include/node/openssl/ssl.h
90
%%BUNDLED_SSL%%include/node/openssl/ssl.h
92
include/node/openssl/ssl2.h
91
%%BUNDLED_SSL%%include/node/openssl/ssl2.h
93
include/node/openssl/ssl23.h
92
%%BUNDLED_SSL%%include/node/openssl/ssl23.h
94
include/node/openssl/ssl3.h
93
%%BUNDLED_SSL%%include/node/openssl/ssl3.h
95
include/node/openssl/stack.h
94
%%BUNDLED_SSL%%include/node/openssl/stack.h
96
include/node/openssl/symhacks.h
95
%%BUNDLED_SSL%%include/node/openssl/symhacks.h
97
include/node/openssl/tls1.h
96
%%BUNDLED_SSL%%include/node/openssl/tls1.h
98
include/node/openssl/ts.h
97
%%BUNDLED_SSL%%include/node/openssl/ts.h
99
include/node/openssl/txt_db.h
98
%%BUNDLED_SSL%%include/node/openssl/txt_db.h
100
include/node/openssl/ui.h
99
%%BUNDLED_SSL%%include/node/openssl/ui.h
101
include/node/openssl/ui_compat.h
100
%%BUNDLED_SSL%%include/node/openssl/ui_compat.h
102
include/node/openssl/whrlpool.h
101
%%BUNDLED_SSL%%include/node/openssl/whrlpool.h
103
include/node/openssl/x509.h
102
%%BUNDLED_SSL%%include/node/openssl/x509.h
104
include/node/openssl/x509_vfy.h
103
%%BUNDLED_SSL%%include/node/openssl/x509_vfy.h
105
include/node/openssl/x509v3.h
104
%%BUNDLED_SSL%%include/node/openssl/x509v3.h
106
include/node/pthread-fixes.h
107
include/node/stdint-msvc2008.h
108
include/node/tree.h
109
include/node/uv-aix.h
110
include/node/uv-bsd.h
111
include/node/uv-darwin.h
112
include/node/uv-errno.h
113
include/node/uv-linux.h
114
include/node/uv-sunos.h
115
include/node/uv-threadpool.h
116
include/node/uv-unix.h
117
include/node/uv-version.h
118
include/node/uv-win.h
119
include/node/uv.h
120
include/node/v8-debug.h
105
include/node/v8-debug.h
121
include/node/v8-platform.h
106
include/node/v8-platform.h
122
include/node/v8-profiler.h
107
include/node/v8-profiler.h
(-)b/www/node5/Makefile (-12 / +29 lines)
Lines 3-8 Link Here
3
PORTNAME=	node
3
PORTNAME=	node
4
PORTVERSION=	5.11.1
4
PORTVERSION=	5.11.1
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
PORTREVISION=	1
6
CATEGORIES=	www
7
CATEGORIES=	www
7
MASTER_SITES=	http://nodejs.org/dist/v${PORTVERSION}/
8
MASTER_SITES=	http://nodejs.org/dist/v${PORTVERSION}/
8
PKGNAMESUFFIX=	5
9
PKGNAMESUFFIX=	5
Lines 17-43 DEPRECATED= Upstream provides limited support after the release of v6.0.0, see h Link Here
17
EXPIRATION_DATE=	2016-07-01
18
EXPIRATION_DATE=	2016-07-01
18
19
19
OPTIONS_DEFINE=	BUNDLED_SSL DOCS
20
OPTIONS_DEFINE=	BUNDLED_SSL DOCS
20
OPTIONS_DEFAULT=BUNDLED_SSL
21
OPTIONS_SUB=	yes
21
OPTIONS_SUB=	yes
22
22
23
BUNDLED_SSL_DESC=	Use node's bundled OpenSSL implementation
23
BUNDLED_SSL_DESC=	Use node.js's bundled OpenSSL implementation
24
BUNDLED_SSL_USE_OFF=	OPENSSL=yes
24
BUNDLED_SSL_USE_OFF=	OPENSSL=yes
25
BUNDLED_SSL_VARS_OFF=	WITH_OPENSSL_PORT=yes
26
25
27
USES=		compiler execinfo gmake python:2
26
USES=		compiler execinfo gmake python:2 localbase
28
HAS_CONFIGURE=	yes
27
HAS_CONFIGURE=	yes
29
USE_LDCONFIG=	yes
28
USE_LDCONFIG=	yes
30
29
31
CONFLICTS_INSTALL=	node-[0-9]* node-devel-[0-9]* node010-[0-9]* node012-[0-9]* iojs-[0-9]* node4-[0-9]*
30
CONFLICTS_INSTALL=	node-[0-9]* node-devel-[0-9]* node010-[0-9]* node012-[0-9]* iojs-[0-9]* node4-[0-9]*
32
31
33
ONLY_FOR_ARCHS=	i386 amd64
32
ONLY_FOR_ARCHS=	i386 amd64
34
CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST} --without-npm --shared-zlib
33
CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST} \
34
		--without-npm \
35
		--shared-libuv \
36
		--shared-zlib
35
PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
37
PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
36
REINPLACE_ARGS=	-i ''
38
REINPLACE_ARGS=	-i ''
37
MAKE_ENV+=	CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
39
MAKE_ENV+=	CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX} LDFLAGS.host="${LDFLAGS}" LDFLAGS.target="${LDFLAGS}"
40
41
LIB_DEPENDS+=	libuv.so:devel/libuv
42
43
.include <bsd.port.options.mk>
44
45
.if empty(PORT_OPTIONS:MBUNDLED_SSL)
46
47
.if ${OSVERSION} < 1100085
48
# node.js requires openssl 1.0.2, use the port since base isn't new enough
49
WITH_OPENSSL_PORT=yes
50
.endif
51
52
CONFIGURE_ARGS+=	--shared-openssl
53
54
.endif
38
55
39
.include <bsd.port.pre.mk>
56
.include <bsd.port.pre.mk>
40
57
58
.if empty(PORT_OPTIONS:MBUNDLED_SSL)
59
.if defined(OPENSSL_PORT) && (${OPENSSL_PORT} == "security/libressl" || ${OPENSSL_PORT} == "security/libressl-devel")
60
IGNORE=		cannot build node.js with LibreSSL. You must enable BUNDLED_SSL
61
.endif
62
.endif
63
41
.if ${COMPILER_TYPE} == clang
64
.if ${COMPILER_TYPE} == clang
42
MAKE_ENV+=	LINK=clang++
65
MAKE_ENV+=	LINK=clang++
43
CFLAGS+=	-Wno-unused-private-field
66
CFLAGS+=	-Wno-unused-private-field
Lines 52-63 MAKE_ARGS+= strictaliasing=off Link Here
52
USE_GCC=	yes
75
USE_GCC=	yes
53
.endif
76
.endif
54
77
55
.if empty(PORT_OPTIONS:MBUNDLED_SSL)
56
CONFIGURE_ARGS+=	--shared-openssl \
57
			--shared-openssl-includes=${OPENSSLINC} \
58
			--shared-openssl-libpath=${OPENSSLLIB}
59
.endif
60
61
post-patch:
78
post-patch:
62
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
79
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
63
		${WRKSRC}/deps/v8/tools/gyp/v8.gyp
80
		${WRKSRC}/deps/v8/tools/gyp/v8.gyp
(-)b/www/node5/pkg-plist (-15 lines)
Lines 1-5 Link Here
1
bin/node
1
bin/node
2
include/node/android-ifaddrs.h
3
include/node/ares.h
2
include/node/ares.h
4
include/node/ares_build.h
3
include/node/ares_build.h
5
include/node/ares_rules.h
4
include/node/ares_rules.h
Lines 107-126 include/node/node_version.h Link Here
107
%%BUNDLED_SSL%%include/node/openssl/x509.h
106
%%BUNDLED_SSL%%include/node/openssl/x509.h
108
%%BUNDLED_SSL%%include/node/openssl/x509_vfy.h
107
%%BUNDLED_SSL%%include/node/openssl/x509_vfy.h
109
%%BUNDLED_SSL%%include/node/openssl/x509v3.h
108
%%BUNDLED_SSL%%include/node/openssl/x509v3.h
110
include/node/pthread-fixes.h
111
include/node/stdint-msvc2008.h
112
include/node/tree.h
113
include/node/uv-aix.h
114
include/node/uv-bsd.h
115
include/node/uv-darwin.h
116
include/node/uv-errno.h
117
include/node/uv-linux.h
118
include/node/uv-sunos.h
119
include/node/uv-threadpool.h
120
include/node/uv-unix.h
121
include/node/uv-version.h
122
include/node/uv-win.h
123
include/node/uv.h
124
include/node/v8-debug.h
109
include/node/v8-debug.h
125
include/node/v8-platform.h
110
include/node/v8-platform.h
126
include/node/v8-profiler.h
111
include/node/v8-profiler.h

Return to bug 209793