openbsd-ports/www/node/Makefile
robert c480666f7d Instead of reserving 32MB of virtual memory let's reserve the quarter of
RLIMIT_DATA (ulimit -d) if RLIMIT_DATA is not 0 (unlimited).
If RLIMIT_DATA is 0 then the default 512MB reservation will be used.
Using 32MB made v8 use less memory for sure but it was a huge performance
loss too.
2011-06-02 07:21:14 +00:00

60 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.15 2011/06/02 07:21:14 robert Exp $
# XXX:
# - Needs __ARM_NR_cacheflush (or the like) to work on arm-based ports.
# - Needs bundled libcares as arpa/nameser.h does not include ns_t_a.
ONLY_FOR_ARCHS= amd64 i386
COMMENT= V8 JavaScript for clients and servers
DISTNAME= node-v0.4.8
PKGNAME= ${DISTNAME:S/v//g}
REVISION= 1
CATEGORIES= www devel
HOMEPAGE= http://nodejs.org/
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/dist/
MODULES= lang/python
VMEM_WARNING= Yes
WANTLIB += c crypto execinfo ev kvm m pthread ssl stdc++ util
LIB_DEPENDS= devel/libev \
devel/libexecinfo
CONFIGURE_STYLE= simple
CONFIGURE_ARGS+= --shared-libev-libpath="${LOCALBASE}/lib" \
--shared-libev-include="${LOCALBASE}/include"
MODPY_ADJ_FILES=wscript \
tools/node-waf \
tools/waf-light
# These don't require complete rebuilds of the tree
REGRESS_TARGET= test-message test-simple test-pummel test-internet
SUBST_VARS+= CFLAGS
MAKE_ENV+= CXX=c++ CCFLAGS+="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
pre-configure:
${SUBST_CMD} ${WRKSRC}/wscript \
${WRKSRC}/Makefile \
${WRKSRC}/tools/wafadmin/Tools/python.py
# Bad practice, but prevents a whole stack of patches.
ln -sf ${LOCALBASE}/bin/python${MODPY_VERSION} ${WRKDIR}/bin/python
.include <bsd.port.mk>