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

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

clamav: fix build for 0.98.5 when 0.98.4 is installed

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