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 ef57b3c3d09ba2441251e13ea8963e7b905500e7 \
sha256 48fe188c46c793c2d0cb5c81c106e4690251aff6dc8aa6575dc688343291bee1 \
configure.args --mandir=${prefix}/share/man \
--with-openssl=${prefix} \
--with-libcurl=${prefix} \
--with-libjson=${prefix} \
#- disable llvm because of upstream bug
#- https://bugzilla.clamav.net/show_bug.cgi?id=11309
depends_build port:pkgconfig
depends_lib port:libiconv \
path:lib/libssl.dylib:openssl \
#- makefile hack to build even when chmlib is installed with its own lzx.h
#- configure hack to use pkgc-config for libxml2 libraries because
#- xml2-config includes the icu libraries and we overlink otherwiwse
patchfiles patch-libclamav-Makefile.diff patch-configure.diff
# use linux version of openssl cert util on systems < 10.7 that don't support the macOS version
# ./shared/linux/cert_util_linux.c -> ./shared/mac/cert_util_mac.m
# passes all tests. See: https://trac.macports.org/ticket/59168
if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
ui_msg "replacing mac security with linux security"
delete ${worksrcpath}/shared/mac/cert_util_mac.m
copy ${worksrcpath}/shared/linux/cert_util_linux.c \