summaryrefslogtreecommitdiff
path: root/mail/p5-Mail-ClamAV
diff options
context:
space:
mode:
authorgrant <grant>2005-02-17 04:11:52 +0000
committergrant <grant>2005-02-17 04:11:52 +0000
commit0c4c0eb273dd3fe720956d3568827b0f911ce7d5 (patch)
tree9db067097d7d9b0b3ad65c22273b08e4d1ee061d /mail/p5-Mail-ClamAV
parent6765a08a9e52e90d5a82e09f98f3770560e2b610 (diff)
downloadpkgsrc-0c4c0eb273dd3fe720956d3568827b0f911ce7d5.tar.gz
turn curl dependency into an option, ala mail/clamav, so curl support
can be disabled if desired. use PKG_OPTIONS.clamav as the PKG_OPTIONS_VAR, since we want to inherit any options set for clamav. no PKGREVISION bump as defaults unchanged.
Diffstat (limited to 'mail/p5-Mail-ClamAV')
-rw-r--r--mail/p5-Mail-ClamAV/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/mail/p5-Mail-ClamAV/Makefile b/mail/p5-Mail-ClamAV/Makefile
index e5feb8488cd..3cd1d028d7c 100644
--- a/mail/p5-Mail-ClamAV/Makefile
+++ b/mail/p5-Mail-ClamAV/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2005/02/15 00:41:34 grant Exp $
+# $NetBSD: Makefile,v 1.11 2005/02/17 04:11:52 grant Exp $
DISTNAME= Mail-ClamAV-0.13
PKGNAME= p5-${DISTNAME}
@@ -17,6 +17,16 @@ USE_BUILDLINK3= YES
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Mail/ClamAV/.packlist
PTHREAD_OPTS+= require
+PKG_OPTIONS_VAR= PKG_OPTIONS.clamav
+PKG_SUPPORTED_OPTIONS+= curl
+PKG_DEFAULT_OPTIONS+= curl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcurl)
+. include "../../www/curl/buildlink3.mk"
+.endif
+
# avoid having PERL5_SITELIB, PERL5_SITEARCH and PERL5_ARCHLIB set in
# the environment, which confuses the 'install' target of modules
# which use Inline, such as this one.
@@ -29,6 +39,5 @@ do-build:
.include "../../lang/perl5/module.mk"
.include "../../mail/clamav/buildlink3.mk"
-.include "../../www/curl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"