2012-12-04 19:45:05 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2012/12/05 00:45:05 abieber Exp $
|
2012-04-03 14:46:03 -04:00
|
|
|
|
|
|
|
# Currently node itself is only for amd64 and i386, but
|
|
|
|
# the coroutine library this uses only works on amd64
|
|
|
|
# and i386, so even if other arches are supported by node
|
|
|
|
# later, this extension will only support these arches.
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
|
2012-07-12 17:42:53 -04:00
|
|
|
COMMENT = fiber/coroutine support for Node.js
|
2012-04-03 14:46:03 -04:00
|
|
|
|
2012-06-28 13:27:51 -04:00
|
|
|
NPM_VERSION = 0.6.8
|
2012-04-03 14:46:03 -04:00
|
|
|
NPM_NAME = fibers
|
2012-12-04 19:45:05 -05:00
|
|
|
REVISION = 1
|
2012-04-03 14:46:03 -04:00
|
|
|
CATEGORIES = devel
|
|
|
|
|
|
|
|
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
|
|
|
|
|
|
|
|
HOMEPAGE = https://github.com/laverdet/node-fibers
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
2012-05-23 11:13:20 -04:00
|
|
|
MODULES = lang/node
|
2012-04-03 14:46:03 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE = npm ext
|
|
|
|
USE_GMAKE = Yes
|
2012-06-28 13:27:51 -04:00
|
|
|
FIBERS_ARCH = openbsd-${PKG_ARCH:S/amd64/x64/:S/i386/ia32/}
|
|
|
|
SUBST_VARS = FIBERS_ARCH
|
2012-04-03 14:46:03 -04:00
|
|
|
|
2012-06-28 13:27:51 -04:00
|
|
|
MODNODE_DEPENDS ?= node-gyp
|
|
|
|
REGRESS_DEPENDS = ${BUILD_PKGPATH}
|
2012-05-10 04:41:39 -04:00
|
|
|
|
2012-12-04 19:45:05 -05:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKDIST}/binding.gyp
|
|
|
|
|
2012-06-28 13:27:51 -04:00
|
|
|
do-regress:
|
|
|
|
cd ${WRKDIST} && node test.js
|
2012-04-03 14:46:03 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|