summaryrefslogtreecommitdiff
path: root/mail/p5-Mail-ClamAV
diff options
context:
space:
mode:
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"