openbsd-ports/www/node/Makefile
2011-01-03 10:22:29 +00:00

59 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2011/01/03 10:22:29 jasper Exp $
# XXX:
# - Build fails on some amd64 machines?
# - 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.2.6
PKGNAME= ${DISTNAME:S/v//g}
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
WANTLIB += c crypto execinfo ev kvm m pthread ssl stdc++ z
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 \
bin/node-waf \
tools/waf-light
NO_REGRESS= Yes
SUBST_VARS+= CFLAGS
MAKE_ENV+= CXX=c++ CCFLAGS+="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
post-extract:
rm -f ${WRKSRC}/deps/v8/src/SConscript.orig \
${WRKSRC}/deps/v8/src/platform.h.orig
pre-configure:
${SUBST_CMD} ${WRKSRC}/wscript \
${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>