diff options
author | swills <swills@FreeBSD.org> | 2016-11-23 02:13:50 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2016-11-23 02:13:50 +0800 |
commit | d72f40cf11907438090148ebe197dc049e1851f4 (patch) | |
tree | a92057f2f4d23ae4ccd592c5c7179c5330dbed15 /www/node | |
parent | 098da5ec89c48c032a891197e2a834e8190dd2fb (diff) | |
download | freebsd-ports-gnome-d72f40cf11907438090148ebe197dc049e1851f4.tar.gz freebsd-ports-gnome-d72f40cf11907438090148ebe197dc049e1851f4.tar.zst freebsd-ports-gnome-d72f40cf11907438090148ebe197dc049e1851f4.zip |
www/node: add dtrace option and enable by default
Approved by: bradleythughes@fastmail.fm (maintainer)
Diffstat (limited to 'www/node')
-rw-r--r-- | www/node/Makefile | 26 | ||||
-rw-r--r-- | www/node/pkg-plist | 1 |
2 files changed, 24 insertions, 3 deletions
diff --git a/www/node/Makefile b/www/node/Makefile index 41f754cf9b1a..ed1373843398 100644 --- a/www/node/Makefile +++ b/www/node/Makefile @@ -2,7 +2,7 @@ PORTNAME= node PORTVERSION= 6.9.1 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONPREFIX= v CATEGORIES= www MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/ @@ -13,9 +13,18 @@ COMMENT= V8 JavaScript for client and server (6.x) LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -OPTIONS_DEFINE= BUNDLED_SSL DOCS NLS +OPTIONS_DEFINE= BUNDLED_SSL DOCS NLS DTRACE +OPTIONS_DEFAULT= DTRACE OPTIONS_SUB= yes +.if !exists(/usr/sbin/dtrace) +OPTIONS_EXCLUDE+= DTRACE +.endif + +OPTIONS_EXCLUDE_FreeBSD_9+= DTRACE +OPTIONS_EXCLUDE_FreeBSD_10+= DTRACE +OPTIONS_EXCLUDE+= ${OPTIONS_EXCLUDE_${OPSYS}_${OSREL:R}} + BUNDLED_SSL_DESC= Use node.js's bundled OpenSSL implementation BUNDLED_SSL_USES_OFF= ssl BUNDLED_SSL_CONFIGURE_OFF= --shared-openssl @@ -23,7 +32,9 @@ BUNDLED_SSL_CONFIGURE_OFF= --shared-openssl NLS_CONFIGURE_ON= --with-intl=system-icu NLS_LIB_DEPENDS= libicui18n.so:devel/icu -USES= compiler:c++11-lib execinfo gmake python:2,build pkgconfig localbase +USES= compiler:c++11-lib execinfo gmake python:2,build pkgconfig \ + localbase shebangfix + HAS_CONFIGURE= yes USE_LDCONFIG= yes @@ -36,6 +47,8 @@ CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --shared-libuv \ --shared-zlib +SHEBANG_FILES= tools/specialize_node_d.py tools/genv8constants.py + PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,} REINPLACE_ARGS= -i '' MAKE_ENV+= CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX} @@ -71,6 +84,13 @@ CONFIGURE_ARGS= --openssl-no-asm CXXFLAGS+= -D_GLIBCXX_USE_C99 .endif +.if ${PORT_OPTIONS:MDTRACE} +PLIST_SUB+= DTRACE="" +CONFIGURE_ARGS+= --with-dtrace +.else +PLIST_SUB+= DTRACE="@comment " +.endif + post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/deps/v8/tools/gyp/v8.gyp diff --git a/www/node/pkg-plist b/www/node/pkg-plist index 5bd78165306d..11f304bab574 100644 --- a/www/node/pkg-plist +++ b/www/node/pkg-plist @@ -109,6 +109,7 @@ include/node/v8-util.h include/node/v8-version.h include/node/v8.h include/node/v8config.h +%%DTRACE%%lib/dtrace/node.d @(,,444) man/man1/node.1.gz %%PORTDOCS%%%%DOCSDIR%%/gdbinit share/systemtap/tapset/node.stp |