# $Id: Portfile 148560 2016-05-11 14:54:26Z dluke@macports.org $ PortSystem 1.0 PortGroup muniversal 1.0 name clamav version 0.99.2 revision 1 categories sysutils maintainers geeklair.net:dluke 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 checksums rmd160 4ddb7c4ff32b1233a5210da54f162a154043c48e \ sha256 167bd6a13e05ece326b968fdb539b05c2ffcfef6018a274a10aeda85c2c0027a platforms darwin configure.args --mandir=${prefix}/share/man \ --with-zlib=${prefix} \ --with-openssl=${prefix} \ --with-pcre=${prefix} \ --with-xml=${prefix} \ --disable-silent-rules \ --enable-llvm=no #- disable llvm because of upstream bug #- https://bugzilla.clamav.net/show_bug.cgi?id=11309 use_parallel_build yes depends_lib port:libiconv port:zlib port:bzip2 port:ncurses path:lib/libssl.dylib:openssl \ port:pcre2 port:libxml2 test.run yes test.target check set merger_dont_diff ${prefix}/bin/clamav-config platform darwin 8 { configure.cflags {-O0} } post-destroot { #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] { delete $file } 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 configure.args-append --enable-milter } livecheck.type regex livecheck.url http://www.clamav.net/downloads livecheck.regex ${name}-(\\d+.\\d+.\\d+)${extract.suffix}