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

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

libmilter: version bump, update to version included with sendmail.8.14.7

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 105475 2013-04-22 13:53:52Z dluke@macports.org $
2PortSystem 1.0
3
4name                    libmilter
5set major_version       8.14
6version                 ${major_version}.7
7categories              mail
8maintainers             geeklair.net:dluke
9platforms               darwin
10description             libmilter library from Sendmail
11license                 Permissive
12
13long_description        Sendmail's Content Management API (milter) provides \
14                        third-party programs to access mail messages as they \
15                        are being processed by the Mail Transfer Agent (MTA), \
16                        allowing them to examine and modify message content \
17                        and meta-information. Filtering policies implemented \
18                        by Milter-conformant filters may then be centrally \
19                        configured and composed in an end-user's MTA \
20                        configuration file
21
22homepage                http://www.sendmail.org/doc/sendmail-current/libmilter/docs/
23master_sites            ftp://ftp.sendmail.org/pub/sendmail/ \
24                        http://www.mirrorservice.org/sites/ftp.sendmail.org/pub/sendmail/
25distname                sendmail.${version}
26
27checksums       md5     348eedfab0ed00931f2df94e78f22c43 \
28                sha1    7a16bfd3f14e877b30e6dff4952ab6ae49951314 \
29                rmd160  6bef8342f9b5e207a7e5e34ece470becf08ef332
30
31worksrcdir      sendmail-${version}
32
33set arch_flags "${configure.cc_archflags}"
34post-patch {
35        file copy ${worksrcpath}/devtools/OS/Darwin.10.x \
36                ${worksrcpath}/devtools/Site/site.config.m4
37        reinplace "s|-DDARWIN=100000|-DDARWIN=${os.major}0000|" \
38                ${worksrcpath}/devtools/Site/site.config.m4
39        if [variant_isset universal] {
40                reinplace "s|\${Extra_CC_Flags}|${arch_flags}|" \
41                        ${worksrcpath}/devtools/Site/site.config.m4
42        }
43}
44
45use_configure   no
46
47build   {
48                system "cd ${worksrcpath}/${name} && \
49                        ./Build -O ${worksrcpath}/macports"
50       
51                close [open ${worksrcpath}/include/sm_os.h a]
52
53                system "cd ${worksrcpath}/macports/*/${name} && \
54                        ${configure.cc} ${configure.cflags} ${arch_flags}\
55                        -fno-common -DNOT_SENDMAIL -Dsm_snprintf=snprintf \
56                        -D_THREAD_SAFE -DBIND_8_COMPAT -DXP_MT \
57                        -I${worksrcpath}/include \
58                        -I${worksrcpath}/sendmail -c *.c"
59               
60                set x {}
61                fs-traverse object ${worksrcpath}/macports {
62                        if {[file isfile ${object}] && [regexp ".o$" ${object}]} {
63                                lappend x ${object}
64                        }
65                }
66
67                set objects [join ${x} " "]
68
69                system "${configure.cc} ${configure.cflags} ${arch_flags} -dynamiclib \
70                        -install_name ${prefix}/lib/${name}.dylib \
71                        -compatibility_version ${major_version} \
72                        -current_version ${version} \
73                        -o ${worksrcpath}/macports/libmilter.dylib ${objects}"
74        }
75
76destroot        {
77                        file copy "${worksrcpath}/macports/libmilter.dylib" \
78                                "${destroot}${prefix}/lib/"
79                        file copy "${worksrcpath}/include/${name}" \
80                                "${destroot}${prefix}/include/"
81                        file delete "${destroot}${prefix}/include/${name}/milter.h"
82                }
83
84variant universal {
85        set arch_flags "${configure.universal_cflags}"
86}
Note: See TracBrowser for help on using the repository browser.