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

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

clamav: version bump, update to 0.98.6 - remove obsolete build patch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 132261 2015-01-28 14:30:14Z dluke@macports.org $
2
3PortSystem 1.0
4PortGroup muniversal 1.0
5
6name                    clamav
7version                 0.98.6
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     7f4f7e82a09e42c4ebf153d6d452d9d8 \
20                sha1    03cb9a20a08aba9176b1f58d5527d06ec8261f9c \
21                rmd160  48d5fbbdb183e61309212c6bc69f777f99346bd5
22
23platforms               darwin
24
25configure.args          --mandir=${prefix}/share/man \
26                        --with-zlib=${prefix} \
27                        --with-openssl=${prefix} \
28                        --disable-silent-rules
29
30#- yosemite-patch is the yosemite libtool bug
31#- https://bugzilla.clamav.net/show_bug.cgi?id=11188
32
33patchfiles              yosemite-patch-configure.diff
34
35use_parallel_build      yes
36
37depends_lib             port:libiconv port:zlib port:bzip2 port:ncurses port:openssl
38
39test.run                yes
40test.target             check
41
42set merger_dont_diff    ${prefix}/bin/clamav-config
43
44platform darwin 8 {
45                        configure.cflags {-O0}
46                }
47
48post-destroot {
49                        #muniversal should allow this to be hooked in some way that's less gross
50                        #this code copied from nspr's portfile
51                        if {[variant_isset universal]} {
52                                copy ${destroot}${prefix}/bin/${build_arch}-clamav-config ${destroot}${prefix}/bin/bak-config
53                                foreach file [glob ${destroot}${prefix}/bin/*clamav-config] {
54                                        delete $file
55                                        }
56                                move ${destroot}${prefix}/bin/bak-config ${destroot}${prefix}/bin/clamav-config
57                                reinplace "s|-arch ${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
58                                reinplace "s|-L\$\{exec_prefix\}/lib/${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
59                                }
60                        reinplace "s|-R${prefix}/lib||g" ${destroot}${prefix}/bin/clamav-config
61                }
62
63variant clamav_milter description {build with libmilter support} {
64                        depends_lib-append port:libmilter
65                        configure.args-append --enable-milter
66                        }
67
68livecheck.type          regex
69livecheck.url           http://sourceforge.net/projects/clamav/files
70livecheck.regex         ${name}-(\\d+.\\d+.\\d+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.