Ticket #13639: Portfile.2

File Portfile.2, 2.1 KB (added by danielluke (Daniel J. Luke), 16 years ago)

new i386 variant for clamav

Line 
1# $Id: Portfile 32127 2007-12-17 15:35:59Z dluke@macports.org $
2
3PortSystem 1.0
4name                    clamav
5version                 0.92
6categories              sysutils
7maintainers             dluke@geeklair.net
8description             clamav antivirus software
9
10long_description        Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The \
11                        main purpose of this software is the integration with mail \
12                        servers (attachment scanning).
13                       
14homepage                http://www.clamav.net
15master_sites            sourceforge
16checksums               md5 e500651858a9187a87025c8a5c23969c \
17                        sha1 b6573acd9a7bb6bf3bd4b39a0102ce0be764c5bc \
18                        rmd160 37f0450b9b3c6fc863f94811ae372ece1677d791
19platforms               darwin
20configure.args          --disable-clamav \
21                        --mandir=${prefix}/share/man
22
23depends_lib             port:gmp
24
25#workaround gcc bug 28045 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045
26configure.cflags        {-fdefer-pop -fdelayed-branch -fguess-branch-probability \
27                         -fcprop-registers -floop-optimize -fif-conversion \
28                         -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts \
29                         -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename \
30                         -ftree-fre -ftree-ch -fmerge-constants \
31                         -fthread-jumps -fcrossjumping -foptimize-sibling-calls \
32                         -fcse-follow-jumps  -fcse-skip-blocks -fgcse  -fgcse-lm \
33                         -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop \
34                         -frerun-loop-opt -fcaller-saves -fforce-mem -fpeephole2 \
35                         -fschedule-insns  -fschedule-insns2 -fsched-spec -fregmove \
36                         -fdelete-null-pointer-checks -freorder-functions \
37                         -funit-at-a-time -falign-functions  -falign-jumps -falign-loops \
38                         -falign-labels -ftree-pre}
39
40platform darwin i386 {
41                        #The gcc on intel macs crashes when using the above cflags
42                        configure.cflags {-O0}
43                        }
44
45post-destroot {
46                        system "cd '${destroot}${prefix}/etc/'
47                        mv freshclam.conf example-freshclam.conf
48                        mv clamd.conf example-clamd.conf"
49                        }
50
51post-install {          ui_msg "\nYou need to add a new clamav user and clamav\
52                                group to your system if you want to use clamav\
53                                in superuser mode.\n"
54                        }
55
56# There's currently no sendmail or libmilter port to depend on
57variant clamav_milter { configure.args-append --enable-milter }