diff options
author | grant <grant@pkgsrc.org> | 2005-02-17 04:11:52 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2005-02-17 04:11:52 +0000 |
commit | a1300719fee72eba535c5b56cc54ab460f04c721 (patch) | |
tree | 9db067097d7d9b0b3ad65c22273b08e4d1ee061d /mail/p5-Mail-ClamAV | |
parent | 73303aa7180ac748c3719f08a74ca6bdaa100f71 (diff) | |
download | pkgsrc-a1300719fee72eba535c5b56cc54ab460f04c721.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/Makefile | 13 |
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" |