summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorgrant <grant>2004-10-20 10:18:15 +0000
committergrant <grant>2004-10-20 10:18:15 +0000
commitaa102602e581e7a8098378f08e0f987be5dcfce2 (patch)
treeb14e6d6f0d9cdb1a4f4dd95754d7ddcc8e820832 /mail
parent9c11a32c0da387487820be4f93bbd8cd613479a2 (diff)
downloadpkgsrc-aa102602e581e7a8098378f08e0f987be5dcfce2.tar.gz
add dependency on www/curl via PKG_OPTIONS.clamav. reported by Timo
Schöler. bump PKGREVISION.
Diffstat (limited to 'mail')
-rw-r--r--mail/clamav/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/mail/clamav/Makefile b/mail/clamav/Makefile
index 4d21b62da99..01546154422 100644
--- a/mail/clamav/Makefile
+++ b/mail/clamav/Makefile
@@ -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 @@ CONF_FILES_PERMS+= ${EGDIR}/${_file_} ${VIRUSDBDIR}/${_file_} \
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 @@ CONFIGURE_ENV+= ac_cv_header_libmilter_mfapi_h=no
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"