From 4e6261c365a8665396da64ce1c09601db51147de Mon Sep 17 00:00:00 2001 From: grant Date: Thu, 17 Feb 2005 04:11:52 +0000 Subject: 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. --- mail/p5-Mail-ClamAV/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'mail/p5-Mail-ClamAV/Makefile') 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" -- cgit v1.2.3