source: trunk/dports/mail/libmilter/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                    libmilter
6set major_version       8.14
7version                 ${major_version}.3
8categories              mail
9maintainers             geeklair.net:dluke
10platforms               darwin
11description             libmilter library from Sendmail
12long_description        Sendmail's Content Management API (milter) provides \
13                        third-party programs to access mail messages as they \
14                        are being processed by the Mail Transfer Agent (MTA), \
15                        allowing them to examine and modify message content \
16                        and meta-information. Filtering policies implemented \
17                        by Milter-conformant filters may then be centrally \
18                        configured and composed in an end-user's MTA \
19                        configuration file
20
21homepage        http://www.sendmail.org/doc/sendmail-current/libmilter/docs/
22master_sites    ftp://ftp.sendmail.org/pub/sendmail/
23distname        sendmail.${version}
24
25checksums       md5 a5ee5d26e1f546a2da5fb9a513bd6bce \
26                sha1 814c54c3917aa6b0981b5ea99fb34e0c02f31489 \
27                rmd160 5423360ce908c985827cf6524a6de87e3451c27a
28
29worksrcdir      sendmail-${version}
30
31use_configure   no
32
33build   {
34                system "cd ${worksrcpath}/${name} && \
35                        ./Build -O ${worksrcpath}/macports"
36       
37                close [open ${worksrcpath}/include/sm_os.h a]
38
39                system "cd ${worksrcpath}/macports/*/${name} && \
40                        ${configure.compiler} ${configure.cflags} \
41                        -fno-common -Dsm_snprintf=snprintf -DXP_MT \
42                        -I${worksrcpath}/include -I${worksrcpath}/sendmail \
43                        -c *.c"
44               
45                set x {}
46                fs-traverse object ${worksrcpath}/macports {
47                        if {[file isfile ${object}] && [regexp ".o$" ${object}]} {
48                                lappend x ${object}
49                        }
50                }
51
52                set objects [join ${x} " "]
53
54                system "${configure.compiler} ${configure.cflags} -dynamiclib \
55                        -install_name ${prefix}/lib/${name}.dylib \
56                        -compatibility_version ${major_version} \
57                        -current_version ${version} \
58                        -o ${worksrcpath}/macports/libmilter.dylib ${objects}"
59        }
60
61destroot        {
62                        file copy "${worksrcpath}/macports/libmilter.dylib" \
63                                "${destroot}${prefix}/lib/"
64                        file copy "${worksrcpath}/include/${name}" \
65                                "${destroot}${prefix}/include/"
66                        file delete "${destroot}${prefix}/include/${name}/milter.h"
67                }
Note: See TracBrowser for help on using the repository browser.