pkgsrc/lang/nodejs/buildlink3.mk
2019-04-03 00:32:25 +00:00

40 lines
1.2 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.6 2019/04/03 00:32:50 ryoon Exp $
BUILDLINK_TREE+= nodejs
.if !defined(NODEJS_BUILDLINK3_MK)
NODEJS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.nodejs+= nodejs>=10
BUILDLINK_ABI_DEPENDS.nodejs?= nodejs>=10.15.3nb2
BUILDLINK_PKGSRCDIR.nodejs?= ../../lang/nodejs
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} != "Darwin"
.include "../../devel/libexecinfo/buildlink3.mk"
.endif
# Stated by the changelog
BUILDLINK_API_DEPENDS.libuv+= libuv>=1.23
.include "../../devel/libuv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../net/libcares/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
# Requires http_parser_set_max_header_size
BUILDLINK_API_DEPENDS.http-parser+= http-parser>=2.9.0
.include "../../www/http-parser/buildlink3.mk"
# Uncomment when we switch to openssl>=1.1
# .include "../../www/nghttp2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
pkgbase := nodejs
.include "../../mk/pkg-build-options.mk"
# Enable when we start using pkgsrc openssl-1.1.x
#.if !empty(PKG_BUILD_OPTIONS.nodejs:Mopenssl)
#. include "../../security/openssl/buildlink3.mk"
#.endif
.endif # NODEJS_BUILDLINK3_MK
BUILDLINK_TREE+= -nodejs