diff options
author | fhajny <fhajny@pkgsrc.org> | 2018-05-04 14:28:32 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2018-05-04 14:28:32 +0000 |
commit | 5bec16d824bf408ad0caa72fa2c9ceba1d701d21 (patch) | |
tree | f9911c8053e8c90521bf1b0a438b7bc857f94130 /lang | |
parent | d17e287ecd48a5ce605dbd42e31559c18d309a17 (diff) | |
download | pkgsrc-5bec16d824bf408ad0caa72fa2c9ceba1d701d21.tar.gz |
lang/nodejs*: Provide bl3 to nodejs packages to provide headers.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/nodejs/buildlink3.mk | 31 | ||||
-rw-r--r-- | lang/nodejs/nodeversion.mk | 8 | ||||
-rw-r--r-- | lang/nodejs6/buildlink3.mk | 28 | ||||
-rw-r--r-- | lang/nodejs8/buildlink3.mk | 29 |
4 files changed, 92 insertions, 4 deletions
diff --git a/lang/nodejs/buildlink3.mk b/lang/nodejs/buildlink3.mk new file mode 100644 index 00000000000..65f9752263c --- /dev/null +++ b/lang/nodejs/buildlink3.mk @@ -0,0 +1,31 @@ +# $NetBSD: buildlink3.mk,v 1.1 2018/05/04 14:28:32 fhajny Exp $ + +BUILDLINK_TREE+= nodejs + +.if !defined(NODEJS_BUILDLINK3_MK) +NODEJS_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.nodejs+= nodejs>=10 +BUILDLINK_PKGSRCDIR.nodejs?= ../../lang/nodejs + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} != "Darwin" +.include "../../devel/libexecinfo/buildlink3.mk" +.endif +.include "../../devel/zlib/buildlink3.mk" +.include "../../textproc/icu/buildlink3.mk" +.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 diff --git a/lang/nodejs/nodeversion.mk b/lang/nodejs/nodeversion.mk index 9d7631ac849..81f079d4646 100644 --- a/lang/nodejs/nodeversion.mk +++ b/lang/nodejs/nodeversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: nodeversion.mk,v 1.2 2018/05/03 21:19:16 fhajny Exp $ +# $NetBSD: nodeversion.mk,v 1.3 2018/05/04 14:28:32 fhajny Exp $ # This file determins which nodejs version is used as a dependency for # a package. @@ -89,11 +89,11 @@ _NODE_VERSION?= ${v} _NODE_VERSION?= none .if ${_NODE_VERSION} == "8" -DEPENDS+= nodejs>=8<9:../../lang/nodejs8 +.include "../../lang/nodejs8/buildlink3.mk" .elif ${_NODE_VERSION} == "6" -DEPENDS+= nodejs>=6<7:../../lang/nodejs6 +.include "../../lang/nodejs6/buildlink3.mk" .elif ${_NODE_VERSION} == "10" -DEPENDS+= nodejs>=10:../../lang/nodejs +.include "../../lang/nodejs/buildlink3.mk" .else PKG_FAIL_REASON+= "No valid node version found" .endif diff --git a/lang/nodejs6/buildlink3.mk b/lang/nodejs6/buildlink3.mk new file mode 100644 index 00000000000..cf7d1c73668 --- /dev/null +++ b/lang/nodejs6/buildlink3.mk @@ -0,0 +1,28 @@ +# $NetBSD: buildlink3.mk,v 1.1 2018/05/04 14:28:32 fhajny Exp $ + +BUILDLINK_TREE+= nodejs + +.if !defined(NODEJS_BUILDLINK3_MK) +NODEJS_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.nodejs+= nodejs>=6<7 +BUILDLINK_PKGSRCDIR.nodejs?= ../../lang/nodejs6 + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} != "Darwin" +.include "../../devel/libexecinfo/buildlink3.mk" +.endif +.include "../../devel/zlib/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" + +pkgbase := nodejs +.include "../../mk/pkg-build-options.mk" + +.if !empty(PKG_BUILD_OPTIONS.nodejs:Mopenssl) +. include "../../security/openssl/buildlink3.mk" +.endif + +.endif # NODEJS_BUILDLINK3_MK + +BUILDLINK_TREE+= -nodejs diff --git a/lang/nodejs8/buildlink3.mk b/lang/nodejs8/buildlink3.mk new file mode 100644 index 00000000000..85cb3cc2f6d --- /dev/null +++ b/lang/nodejs8/buildlink3.mk @@ -0,0 +1,29 @@ +# $NetBSD: buildlink3.mk,v 1.1 2018/05/04 14:28:32 fhajny Exp $ + +BUILDLINK_TREE+= nodejs + +.if !defined(NODEJS_BUILDLINK3_MK) +NODEJS_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.nodejs+= nodejs>=8<9 +BUILDLINK_PKGSRCDIR.nodejs?= ../../lang/nodejs8 + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} != "Darwin" +.include "../../devel/libexecinfo/buildlink3.mk" +.endif +.include "../../devel/zlib/buildlink3.mk" +.include "../../textproc/icu/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" + +pkgbase := nodejs +.include "../../mk/pkg-build-options.mk" + +.if !empty(PKG_BUILD_OPTIONS.nodejs:Mopenssl) +. include "../../security/openssl/buildlink3.mk" +.endif + +.endif # NODEJS_BUILDLINK3_MK + +BUILDLINK_TREE+= -nodejs |