Changeset View
Changeset View
Standalone View
Standalone View
www/node/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= node | PORTNAME= node | ||||
PORTVERSION= 8.3.0 | PORTVERSION= 8.4.0 | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
CATEGORIES= www | CATEGORIES= www | ||||
MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/ | MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/ | ||||
MAINTAINER= bhughes@FreeBSD.org | MAINTAINER= bhughes@FreeBSD.org | ||||
COMMENT= V8 JavaScript for client and server | COMMENT= V8 JavaScript for client and server | ||||
LICENSE= MIT | LICENSE= MIT | ||||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
CONFIGURE_ARGS+=--openssl-no-asm | CONFIGURE_ARGS+=--openssl-no-asm | ||||
.endif | .endif | ||||
.if ${COMPILER_TYPE} == gcc | .if ${COMPILER_TYPE} == gcc | ||||
# GCC does not expose std::snprintf() without this define | # GCC does not expose std::snprintf() without this define | ||||
CXXFLAGS+= -D_GLIBCXX_USE_C99 | CXXFLAGS+= -D_GLIBCXX_USE_C99 | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MDTRACE} | .if ${PORT_OPTIONS:MDTRACE} | ||||
CONFIGURE_ARGS+= --with-dtrace | CONFIGURE_ARGS+= --with-dtrace | ||||
.endif | .endif | ||||
mat: DTRACE_CONFIGURE_WITH= dtrace
Or if it does not support --without-dtrace… | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ | @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ | ||||
${WRKSRC}/deps/v8/src/v8.gyp | ${WRKSRC}/deps/v8/src/v8.gyp | ||||
# So many different ways to run python. Fix them all. | # So many different ways to run python. Fix them all. | ||||
@${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ | @${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ | ||||
${WRKSRC}/configure | ${WRKSRC}/configure | ||||
@${FIND} ${WRKSRC} -type f -name '*.gyp*' -print0 \ | @${FIND} ${WRKSRC} -type f -name '*.gyp*' -print0 \ | ||||
Show All 19 Lines |
Or if it does not support --without-dtrace: