Changeset View
Changeset View
Standalone View
Standalone View
head/www/node/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= node | PORTNAME= node | ||||
PORTVERSION= 8.6.0 | PORTVERSION= 8.8.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 71 Lines • ▼ Show 20 Lines | |||||
.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 | ||||
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. | |||||
@${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ | |||||
${WRKSRC}/configure | |||||
@${FIND} ${WRKSRC} -type f -name '*.gyp*' -print0 \ | |||||
| ${XARGS} -0 ${REINPLACE_CMD} \ | |||||
-e "s|'python'|'${PYTHON_CMD}'|" \ | |||||
-e 's|<!(python |<!(${PYTHON_CMD} |' \ | |||||
-e 's|\&\& python |\&\& ${PYTHON_CMD} |' | |||||
post-configure: | post-configure: | ||||
# Post-process Makefile and *.mk files created by node-gyp and remove | # Post-process Makefile and *.mk files created by node-gyp and remove | ||||
# all occurrences of -I${LOCALBASE}/include. C*FLAGS include this | # all occurrences of -I${LOCALBASE}/include. C*FLAGS include this | ||||
# before all -I../deps/* for bundled code. This can cause build | # before all -I../deps/* for bundled code. This can cause build | ||||
# breakages if the dependency is installed in ${LOCALBASE}. The | # breakages if the dependency is installed in ${LOCALBASE}. The | ||||
# USES+=localbase # above will ensure that we pick up includes for real | # USES+=localbase # above will ensure that we pick up includes for real | ||||
# external dependencies. | # external dependencies. | ||||
${FIND} ${WRKSRC}/out -type f -print0 \ | ${FIND} ${WRKSRC}/out -type f -print0 \ | ||||
| ${XARGS} -0 ${REINPLACE_CMD} -e "s|-I${LOCALBASE}/include||g" | | ${XARGS} -0 ${REINPLACE_CMD} -e "s|-I${LOCALBASE}/include||g" | ||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/node | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/node | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |