summaryrefslogtreecommitdiff
path: root/textproc/libxslt/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-12-28 04:37:54 +0000
committerxtraeme <xtraeme>2004-12-28 04:37:54 +0000
commitdfff49bfddc855cbbe631408bd8901351b439164 (patch)
treeafc93fd085cdc8c86eeb27f3cd8cf0fae70b2299 /textproc/libxslt/Makefile
parentca3f89eace8353ed80f3b89fbaa1d024cd6f04d6 (diff)
downloadpkgsrc-dfff49bfddc855cbbe631408bd8901351b439164.tar.gz
Add an option to disable the crypto extensions (it's enabled by default
as before) so users that don't need this, can disable it via PKG_OPTIONS.libxslt=-crypto.
Diffstat (limited to 'textproc/libxslt/Makefile')
-rw-r--r--textproc/libxslt/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/textproc/libxslt/Makefile b/textproc/libxslt/Makefile
index bd4676e4c6e..c56e4bb3789 100644
--- a/textproc/libxslt/Makefile
+++ b/textproc/libxslt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2004/10/31 11:01:23 recht Exp $
+# $NetBSD: Makefile,v 1.52 2004/12/28 04:37:54 xtraeme Exp $
DISTNAME= libxslt-1.1.12
PKGNAME= ${DISTNAME}
@@ -28,7 +28,18 @@ TEST_TARGET= check
BUILDLINK_DEPENDS.libxml2+= libxml2>=2.6.8
+PKG_OPTIONS_VAR= PKG_OPTIONS.libxslt
+PKG_SUPPORTED_OPTIONS= crypto
+PKG_DEFAULT_OPTIONS+= crypto
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcrypto)
+. include "../../security/libgcrypt/buildlink3.mk"
+CONFIGURE_ARGS+= --with-crypto
+.else
+CONFIGURE_ARGS+= --without-crypto
+.endif
+
.include "../../textproc/libxml2/buildlink3.mk"
-.include "../../security/libgcrypt/buildlink3.mk"
.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"