source: trunk/dports/sysutils/clamav/Portfile @ 121075

Last change on this file since 121075 was 121075, checked in by dluke@…, 5 years ago

clamav: version bump, update to 0.98.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 121075 2014-06-17 00:21:32Z dluke@macports.org $
2
3PortSystem 1.0
4PortGroup muniversal 1.0
5
6name                    clamav
7version                 0.98.4
8categories              sysutils
9maintainers             geeklair.net:dluke
10description             clamav antivirus software
11license                 {GPL-2 OpenSSLException}
12
13long_description        Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The \
14                        main purpose of this software is the integration with mail \
15                        servers (attachment scanning).
16
17homepage                http://www.clamav.net
18master_sites            sourceforge
19checksums       md5     6d409eab6c311de05a0a591fccd2ec83 \
20                sha1    f1003d04f34efb0aede05395d3c7cc22c944e4ef \
21                rmd160  425ef5a01ecb1cd3c4336721c7cd96dd62d04e7d
22
23platforms               darwin
24configure.args          --mandir=${prefix}/share/man \
25                        --with-zlib=${prefix} \
26                        --with-openssl=${prefix} \
27                        --disable-silent-rules
28
29use_parallel_build      yes
30
31depends_lib             port:libiconv port:zlib port:bzip2 port:ncurses port:openssl
32
33test.run                yes
34test.target             check
35
36set merger_dont_diff    ${prefix}/bin/clamav-config
37
38platform darwin 8 {
39                        configure.cflags {-O0}
40                }
41
42post-destroot {
43                        #muniversal should allow this to be hooked in some way that's less gross
44                        #this code copied from nspr's portfile
45                        if {[variant_isset universal]} {
46                                copy ${destroot}${prefix}/bin/${build_arch}-clamav-config ${destroot}${prefix}/bin/bak-config
47                                foreach file [glob ${destroot}${prefix}/bin/*clamav-config] {
48                                        delete $file
49                                        }
50                                move ${destroot}${prefix}/bin/bak-config ${destroot}${prefix}/bin/clamav-config
51                                reinplace "s|-arch ${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
52                                reinplace "s|-L\$\{exec_prefix\}/lib/${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
53                                }
54                        reinplace "s|-R${prefix}/lib||g" ${destroot}${prefix}/bin/clamav-config
55                }
56
57variant clamav_milter description {build with libmilter support} {
58                        depends_lib-append port:libmilter
59                        configure.args-append --enable-milter
60                        }
61
62livecheck.type          regex
63livecheck.url           http://sourceforge.net/projects/clamav/files
64livecheck.regex         ${name}-(\\d+.\\d+.\\d+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.