summaryrefslogtreecommitdiff
path: root/mail/clamav/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2007-02-28 20:42:05 +0000
committerxtraeme <xtraeme@pkgsrc.org>2007-02-28 20:42:05 +0000
commit5b082f8e6ab3e7792c01da4eb2c0ff3ec5b720b0 (patch)
tree8214bd5453f446b88029483d23c529b333836a1e /mail/clamav/Makefile
parent62ef1e7bf2caaa1d5927f36dc222adc755520cd2 (diff)
downloadpkgsrc-5b082f8e6ab3e7792c01da4eb2c0ff3ec5b720b0.tar.gz
Disable --enable-experimental by default, because it does not work
correctly with sparc64. Make it an option: clamav-experimental. Move all options into the options.mk file.
Diffstat (limited to 'mail/clamav/Makefile')
-rw-r--r--mail/clamav/Makefile34
1 files changed, 3 insertions, 31 deletions
diff --git a/mail/clamav/Makefile b/mail/clamav/Makefile
index 84495b37e2f..4588352975a 100644
--- a/mail/clamav/Makefile
+++ b/mail/clamav/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.68 2007/02/17 12:06:10 xtraeme Exp $
+# $NetBSD: Makefile,v 1.69 2007/02/28 20:42:05 xtraeme Exp $
DISTNAME= clamav-${CLAMAV_VERSION}
PKGNAME= clamav-${CLAMAV_VERSION:S/-/./}
-#PKGREVISION= 1
+PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
@@ -24,7 +24,6 @@ CONFIGURE_ARGS+= --with-uid=${CLAMAV_USER:Q}
CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP:Q}
CONFIGURE_ARGS+= --with-tcpwrappers
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
-CONFIGURE_ARGS+= --enable-experimental
CONFIGURE_ARGS+= --enable-readdir_r
.include "../../mk/bsd.prefs.mk"
@@ -53,34 +52,7 @@ CONF_FILES_PERMS+= ${EGDIR}/${i} ${CLAMAV_DBDIR}/${i} \
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} CFGINST=${EGDIR} DBINST=${EGDIR}
-PKG_OPTIONS_VAR= PKG_OPTIONS.clamav
-PKG_SUPPORTED_OPTIONS= curl milter
-PKG_SUGGESTED_OPTIONS= curl
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mmilter)
-# force use of pkgsrc version of libmilter -- clamav uses the sendmail binary
-# to check API compatibility(!), so it must build with as new a version of
-# libmilter as pkgsrc is capable of providing
-USE_BUILTIN.libmilter= no
-. include "../../mail/libmilter/buildlink3.mk"
-CONFIGURE_ARGS+= --enable-milter
-PLIST_SUBST+= MILTER=
-.else
-CONFIGURE_ARGS+= --disable-milter
-# XXX --disable-milter doesn't work as expected, so we need this
-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_API_DEPENDS.curl+=curl>=7.10.0
-.else
-CONFIGURE_ARGS+= --without-libcurl
-.endif
+.include "options.mk"
# pkgsrc enforces a "secure" version of zlib, so don't let this check
# bomb the build.