summaryrefslogtreecommitdiff
path: root/mail/clamav
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-10-20 10:18:15 +0000
committergrant <grant@pkgsrc.org>2004-10-20 10:18:15 +0000
commit876fcd24c62ab3a762969df5f5850858f4b1346c (patch)
treeb14e6d6f0d9cdb1a4f4dd95754d7ddcc8e820832 /mail/clamav
parentc164cfc86b545ed7b71616510c7d4bec730b8b56 (diff)
downloadpkgsrc-876fcd24c62ab3a762969df5f5850858f4b1346c.tar.gz
add dependency on www/curl via PKG_OPTIONS.clamav. reported by Timo
Schöler. bump PKGREVISION.
Diffstat (limited to 'mail/clamav')
-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"