summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-01-01 14:03:42 +0000
committerwiz <wiz@pkgsrc.org>2011-01-01 14:03:42 +0000
commit0712d37ce3a1873d92f71dc6e26afe849346c971 (patch)
tree43e5dc7c8d877e6b0c436db3d8b739f69508dd4e /lang
parent0cf6a24677e8cb96c878cc1f60dce9e630f53ed8 (diff)
downloadpkgsrc-0712d37ce3a1873d92f71dc6e26afe849346c971.tar.gz
Only include nspr and threads bl3.mk files when threading is enabled;
otherwise they are not pulled in by the base package and the buildlink step fails. (Broke avidemux.)
Diffstat (limited to 'lang')
-rw-r--r--lang/spidermonkey/buildlink3.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/lang/spidermonkey/buildlink3.mk b/lang/spidermonkey/buildlink3.mk
index f6469970f25..7f4cc25aae0 100644
--- a/lang/spidermonkey/buildlink3.mk
+++ b/lang/spidermonkey/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.13 2009/05/20 00:58:20 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.14 2011/01/01 14:03:42 wiz Exp $
BUILDLINK_TREE+= spidermonkey
@@ -16,7 +16,14 @@ BUILDLINK_ABI_DEPENDS.spidermonkey?= spidermonkey>=1.5nb8
BUILDLINK_PKGSRCDIR.spidermonkey?= ../../lang/spidermonkey
.include "../../devel/readline/buildlink3.mk"
-.include "../../devel/nspr/buildlink3.mk"
+
+pkgbase := spidermonkey
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.spidermonkey:Mthreads)
+. include "../../devel/nspr/buildlink3.mk"
+. include "../../mk/pthread.buildlink3.mk"
+.endif
.endif # SPIDERMONKEY_BUILDLINK3_MK
BUILDLINK_TREE+= -spidermonkey