maintainers {geeklair.net:dluke @danielluke}
description clamav antivirus software
license {GPL-2 OpenSSLException}
long_description Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The \
main purpose of this software is the integration with mail \
servers (attachment scanning).
homepage http://www.clamav.net
master_sites http://www.clamav.net/downloads/production
checksums rmd160 cd10ede75b93508aca18269736d1f51e9d769374 \
sha256 84e026655152247de7237184ee13003701c40be030dd68e0316111049f58a59f \
configure.args --mandir=${prefix}/share/man \
--with-openssl=${prefix} \
#- disable llvm because of upstream bug
#- https://bugzilla.clamav.net/show_bug.cgi?id=11309
depends_lib port:libiconv port:zlib port:bzip2 port:ncurses path:lib/libssl.dylib:openssl \
set merger_dont_diff ${prefix}/bin/clamav-config
#muniversal should allow this to be hooked in some way that's less gross
#this code copied from nspr's portfile
if {[variant_isset universal]} {
copy ${destroot}${prefix}/bin/${build_arch}-clamav-config ${destroot}${prefix}/bin/bak-config
foreach file [glob ${destroot}${prefix}/bin/*clamav-config] {
move ${destroot}${prefix}/bin/bak-config ${destroot}${prefix}/bin/clamav-config
reinplace "s|-arch ${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
reinplace "s|-L\$\{exec_prefix\}/lib/${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
reinplace "s|-R${prefix}/lib||g" ${destroot}${prefix}/bin/clamav-config
variant clamav_milter description {build with libmilter support} {
depends_lib-append port:libmilter