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

Last change on this file since 139469 was 139469, checked in by jmr@…, 4 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

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