Changeset View
Changeset View
Standalone View
Standalone View
www/node/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= node | PORTNAME= node | ||||
PORTVERSION= 8.2.1 | PORTVERSION= 8.3.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 64 Lines • ▼ Show 20 Lines | |||||
.if ${ARCH} == "armv6" | .if ${ARCH} == "armv6" | ||||
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 | |||||
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 40 | |||||
# Conditinal work around for a bug in libc++ included with clang 3.x: | |||||
# https://bugs.llvm.org/show_bug.cgi?id=18249 | |||||
# https://bugs.llvm.org/show_bug.cgi?id=18350 | |||||
# https://bugs.llvm.org/show_bug.cgi?id=18853 | |||||
# | |||||
# Upstream Node.js adds the define to all FreeBSD builds. This breaks | |||||
# the build with clang 4.0, so we patch it out (files/patch-common.gypi) | |||||
# and add it here instead. | |||||
CXXFLAGS+= -D_LIBCPP_TRIVIAL_PAIR_COPY_CTOR | |||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MDTRACE} | .if ${PORT_OPTIONS:MDTRACE} | ||||
CONFIGURE_ARGS+= --with-dtrace | CONFIGURE_ARGS+= --with-dtrace | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ | @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ | ||||
Show All 24 Lines |