pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/clamav add dependency on www/curl via PKG_OPTIONS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/051645d21507
branches:  trunk
changeset: 482105:051645d21507
user:      grant <grant%pkgsrc.org@localhost>
date:      Wed Oct 20 10:18:15 2004 +0000

description:
add dependency on www/curl via PKG_OPTIONS.clamav. reported by Timo
Schöler.

bump PKGREVISION.

diffstat:

 mail/clamav/Makefile |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r ca2120a9ce6b -r 051645d21507 mail/clamav/Makefile
--- a/mail/clamav/Makefile      Wed Oct 20 10:12:56 2004 +0000
+++ b/mail/clamav/Makefile      Wed Oct 20 10:18:15 2004 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.27 2004/10/20 09:12:11 grant Exp $
+# $NetBSD: Makefile,v 1.28 2004/10/20 10:18:15 grant Exp $
 
 DISTNAME=      clamav-${CLAMAV_VERSION}
 PKGNAME=       clamav-${CLAMAV_VERSION:S/-/./}
+PKGREVISION=   1
 CATEGORIES=    mail
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=clamav/}
 
@@ -55,12 +56,14 @@
 
 INSTALL_MAKE_FLAGS=    ${MAKE_FLAGS} CFGINST=${EGDIR} DBINST=${EGDIR}
 
+PKG_DEFAULT_OPTIONS+=  curl
+
 .if defined(USE_MILTER) && !empty(USE_MILTER:M[yY][eE][sS])
 PKG_DEFAULT_OPTIONS+=  milter
 .endif
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.clamav
-PKG_SUPPORTED_OPTIONS= milter
+PKG_SUPPORTED_OPTIONS= curl milter
 .include "../../mk/bsd.options.mk"
 
 .if !empty(PKG_OPTIONS:Mmilter)
@@ -74,6 +77,14 @@
 PLIST_SUBST+=          MILTER="@comment "
 .endif
 
+.if !empty(PKG_OPTIONS:Mcurl)
+.  include "../../www/curl/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-libcurl
+BUILDLINK_DEPENDS.curl+=curl>=7.10.0
+.else
+CONFIGURE_ARGS+=       --without-libcurl
+.endif
+
 .include "../../archivers/bzip2/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../devel/gmp/buildlink3.mk"



Home | Main Index | Thread Index | Old Index