summaryrefslogtreecommitdiff
path: root/textproc/libxslt
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-12-28 04:44:56 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-12-28 04:44:56 +0000
commit32800b6ec3cdc1d6df997edc7f4c937494d696a2 (patch)
treebae60cf07ec1e5c9e73a4cc0f45b9ef9b87f5f56 /textproc/libxslt
parent0cf538c137546e13a553292a677c7d245f401e6c (diff)
downloadpkgsrc-32800b6ec3cdc1d6df997edc7f4c937494d696a2.tar.gz
If the crypto option has not been enabled, don't depend on libgcrypt,
make it conditionally.
Diffstat (limited to 'textproc/libxslt')
-rw-r--r--textproc/libxslt/buildlink3.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/textproc/libxslt/buildlink3.mk b/textproc/libxslt/buildlink3.mk
index 8cc6e318d0b..5a66246862f 100644
--- a/textproc/libxslt/buildlink3.mk
+++ b/textproc/libxslt/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.7 2004/10/03 00:18:20 tv Exp $
+# $NetBSD: buildlink3.mk,v 1.8 2004/12/28 04:44:56 xtraeme Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
LIBXSLT_BUILDLINK3_MK:= ${LIBXSLT_BUILDLINK3_MK}+
@@ -16,8 +16,13 @@ BUILDLINK_RECOMMENDED.libxslt+= libxslt>=1.1.10nb1
BUILDLINK_PKGSRCDIR.libxslt?= ../../textproc/libxslt
.endif # LIBXSLT_BUILDLINK3_MK
+PKG_OPTIONS.libxslt?= ${PKG_DEFAULT_OPTIONS}
+
+.if !empty(PKG_OPTIONS.libxslt:Mcrypto)
+. include "../../security/libgcrypt/buildlink3.mk"
+.endif
+
.include "../../lang/perl5/buildlink3.mk"
-.include "../../security/libgcrypt/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}