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

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

clamav: build fails with previous clamav active

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 128380 2014-11-20 14:25:58Z dluke@macports.org $
2
3PortSystem 1.0
4PortGroup conflicts_build 1.0
5PortGroup muniversal 1.0
6
7name                    clamav
8version                 0.98.5
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       md5     abb5c7efaff3394c0a49ff970841a2ac \
21                sha1    5f5e45735819e3ca61610899b779172a5639f70f \
22                rmd160  7808f27177f08fae400124a032c9d0c75be890dc
23
24platforms               darwin
25
26#0.98.5 can't build with 0.98.4 installed see #45935
27#wishing for trace mode...
28conflicts_build         ${name}
29
30configure.args          --mandir=${prefix}/share/man \
31                        --with-zlib=${prefix} \
32                        --with-openssl=${prefix} \
33                        --disable-silent-rules
34
35patchfiles              yosemite-patch-configure.diff
36
37use_parallel_build      yes
38
39depends_lib             port:libiconv port:zlib port:bzip2 port:ncurses port: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.