pkgsrc/lang/nodejs/Makefile.common
fhajny 73a9f186ae Update lang/nodejs to 6.0.0.
This release will become the new LTS later in 2016.

The following significant changes have been made since the
previous Node.js v5.0.0 release.

Buffer
- New Buffer constructors have been added #4682 and #5833.
- Existing Buffer() and SlowBuffer() constructors have been
  deprecated in docs #4682 and #5833.
- Previously deprecated Buffer APIs are removed #5048, #4594.
- Improved error handling #4514.
- The Buffer.prototype.lastIndexOf() method has been added #4846.

Cluster
- Worker emitted as first argument in 'message' event #5361.
- The worker.exitedAfterDisconnect property replaces
  worker.suicide #3743.

Console
- Calling console.timeEnd() with an unknown label now emits a
  process warning rather than throwing #5901.

Crypto
- Improved error handling #3100, #5611.
- Simplified Certificate class bindings #5382.
- Improved control over FIPS mode #5181.
- pbkdf2 digest overloading is deprecated #4047.

Dependencies
- Reintroduce shared c-ares build support #5775.
- V8 updated to 5.0.71.35 #6372.

DNS
- Add dns.resolvePtr() API to query plain DNS PTR records #4921.

Domains
- Clear stack when no error handler #4659.

Events
- The EventEmitter.prototype._events object no longer inherits
  from Object.prototype #6092.
- The EventEmitter.prototype.prependListener() and
  EventEmitter.prototype.prependOnceListener() methods have been
  added #6032.

File System
- The fs.realpath() and fs.realpathSync() methods have been
  updated to use a more efficient libuv-based implementation. This
  change includes the removal of the cache argument and the method
  can throw new errors #3594.
- FS apis can now accept and return paths as Buffers #5616.
- Error handling and type checking improvements #5616, #5590,
  #4518, #3917.
- fs.read's string interface is deprecated #4525.

HTTP
- 'clientError' can now be used to return custom errors from an
  HTTP server #4557.
2016-04-27 15:03:10 +00:00

63 lines
1.6 KiB
Text

# $NetBSD: Makefile.common,v 1.7 2016/04/27 15:03:10 fhajny Exp $
# used by lang/nodejs/Makefile
# used by lang/nodejs4/Makefile
CATEGORIES= devel
MASTER_SITES= http://nodejs.org/dist/${DISTNAME:S/node-//}/
PKGNAME= ${DISTNAME:S/-v/js-/}
MAINTAINER= filip@joyent.com
HOMEPAGE= http://nodejs.org/
COMMENT= V8 JavaScript for clients and servers
LICENSE= mit
HAS_CONFIGURE= yes
USE_TOOLS+= bash gmake pkg-config
USE_LANGUAGES= c c++
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 0.10.24
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
GCC_REQD+= 4.8
CONFIG_SHELL= ${PYTHONBIN}
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --shared-zlib
PTHREAD_AUTO_VARS= yes
CONFIGURE_ENV.NetBSD+= GYP_DEFINES="OS=netbsd"
MAKE_ENV.NetBSD+= GYP_DEFINES="OS=netbsd"
.if ${OPSYS} == "Linux" && !exists(/usr/bin/gold)
CONFIGURE_ENV+= GYP_DEFINES="linux_use_gold_flags=0"
.endif
REPLACE_PYTHON+= configure
REPLACE_PYTHON+= tools/genv8constants.py
REPLACE_PYTHON+= tools/gyp/pylib/gyp/flock_tool.py
CHECK_INTERPRETER_SKIP+= lib/node_modules/npm/*
.if ${OPSYS} == "NetBSD"
BUILD_DEPENDS+= lockf-[0-9]*:../../sysutils/lockf
.endif
TEST_TARGET= check
pre-install:
${FIND} ${WRKSRC}/deps/npm -name '*.orig' | ${XARGS} ${RM} -f
${CHMOD} -R g-w ${WRKSRC}
post-install:
cd ${DESTDIR}${PREFIX} && ${SETENV} ${BASH} \
./lib/node_modules/npm/scripts/relocate.sh ${PREFIX}/bin/node
.if ${OPSYS} != "Darwin"
.include "../../devel/libexecinfo/buildlink3.mk"
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/tool.mk"
.include "../../mk/pthread.buildlink3.mk"