freebsd-ports/www/node06/Makefile
Sunpoet Po-Chuan Hsieh 4fe61e04b3 - Update to 0.6.21
- Add LATEST_LINK

Changes:	https://github.com/joyent/node/blob/v0.6.21/ChangeLog
PR:		ports/170827
Submitted by:	Jin-Sih Lin <linpct@gmail.com> (maintainer)
2012-08-22 05:09:40 +00:00

71 lines
1.7 KiB
Makefile

# New ports collection makefile for: node
# Date created: 2010-04-12
# Whom: Jin-Sih Lin <linpct@gmail.com>
#
# $FreeBSD$
#
PORTNAME= node
PORTVERSION= 0.6.21
CATEGORIES= www
MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/
DISTNAME= ${PORTNAME}-v${PORTVERSION}
MAINTAINER= linpct@gmail.com
COMMENT= V8 JavaScript for client and server
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
OPTIONS= SHARED_V8 "Build with lang/v8" off
CONFLICTS= node-0.[0-57-9]* node-devel-0.[0-9]*
LATEST_LINK= node06
CONFIGURE_ARGS= --no-ssl2 \
--openssl-includes=${OPENSSLINC} \
--openssl-libpath=${OPENSSLLIB} \
--prefix=${PREFIX:S/^${DESTDIR}//} \
--without-npm
HAS_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
ONLY_FOR_ARCHS= i386 amd64
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_PYTHON= 2.7
USE_OPENSSL= yes
MAN1= node.1
.if !defined(DISABLE_MAKE_JOBS)
WAF_ARGS= --jobs=${MAKE_JOBS_NUMBER}
.endif
.include <bsd.port.options.mk>
.if defined(WITH_SHARED_V8)
CONFIGURE_ARGS+=--shared-v8 \
--shared-v8-includes=${LOCALBASE}/include \
--shared-v8-libpath=${LOCALBASE}/lib \
--without-snapshot
LIB_DEPENDS+= v8:${PORTSDIR}/lang/v8
PLIST_SUB+= SHARED_V8="@comment "
.else
PLIST_SUB+= SHARED_V8=""
.endif
do-build:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} tools/waf-light ${WAF_ARGS} build)
do-install:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} tools/waf-light ${WAF_ARGS} install)
post-install:
${MKDIR} ${PREFIX}/lib/node_modules/
${TOUCH} ${PREFIX}/lib/node_modules/.keepme
${INSTALL_MAN} ${WRKSRC}/doc/node.1 ${MANPREFIX}/man/man1/
@${ECHO_MSG}
@${ECHO_MSG} "Note: If you need npm (Node Package Manager), please install www/npm."
@${ECHO_MSG}
.include <bsd.port.mk>