pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/p5-Mail-ClamAV turn curl dependency into an optio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e89ca20894db
branches:  trunk
changeset: 489123:e89ca20894db
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Feb 17 04:11:52 2005 +0000

description:
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:

 mail/p5-Mail-ClamAV/Makefile |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 5c0640e7f1ef -r e89ca20894db mail/p5-Mail-ClamAV/Makefile
--- a/mail/p5-Mail-ClamAV/Makefile      Thu Feb 17 03:12:27 2005 +0000
+++ b/mail/p5-Mail-ClamAV/Makefile      Thu Feb 17 04:11:52 2005 +0000
@@ -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 @@
 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 @@
 
 .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"



Home | Main Index | Thread Index | Old Index