source: trunk/dports/mail/cclient/Portfile @ 102460

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

dependents of kerberos5: revbump due to update to 1.11 in r102459

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 102460 2013-02-03 22:40:19Z cal@macports.org $
2
3PortSystem      1.0
4PortGroup       archcheck 1.0
5
6name            cclient
7version         2007e
8revision        2
9license         Apache-2
10platforms       darwin
11categories      mail devel
12maintainers     nomaintainer
13description     UW IMAP c-client library
14
15long_description \
16    C-client is a common API for accessing mailboxes. It is used internally by \
17    the popular PINE mail reader as well as the University of Washington's \
18    IMAP server.
19
20homepage        http://www.washington.edu/imap/
21master_sites    ftp://ftp.cac.washington.edu/imap/
22distname        imap-${version}
23dist_subdir     imap-uw
24
25checksums       md5     7903800dc2604000016de070e0c55840 \
26                sha1    ab8bd27de41926acb257b813a95c10d2ab04c6e8 \
27                rmd160  6a392f3ebf5b72686a0a232333a5670c76c173d6
28
29depends_lib     port:openssl \
30                port:zlib \
31                lib:libgssapi_krb5:kerberos5
32
33worksrcdir      imap-${version}
34
35post-patch {
36    reinplace -E /SSLLIB/s|/usr|${prefix}|g ${worksrcpath}/Makefile
37    reinplace -E /SSLLIB/s|/System/Library/OpenSSL|${prefix}/etc/openssl|g \
38        ${worksrcpath}/Makefile
39}
40
41archcheck.files \
42    lib/libssl.dylib \
43    lib/libz.dylib
44
45use_configure   no
46
47build.target    oxp
48build.args      CC=${configure.cc}
49
50use_parallel_build no
51
52destroot {
53    xinstall -d ${destroot}${prefix}/include/c-client
54    xinstall -m 644 -W ${worksrcpath}/c-client \
55        c-client.h dummy.h env.h env_unix.h fdstring.h flockcyg.h flocksim.h \
56        flstring.h fs.h ftl.h imap4r1.h linkage.c linkage.h mail.h \
57        misc.h netmsg.h newsrc.h nl.h nntp.h osdep.h \
58        pseudo.h rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h \
59        utf8.h utf8aux.h \
60        ${destroot}${prefix}/include/c-client
61    xinstall -m 644 ${worksrcpath}/c-client/c-client.a \
62        ${destroot}${prefix}/lib/libc-client4.a
63    system "ranlib ${destroot}${prefix}/lib/libc-client4.a"
64
65    set docdir ${prefix}/share/doc/${name}
66    xinstall -d ${destroot}${docdir}
67    xinstall -m 644 -W ${worksrcpath} LICENSE.txt NOTICE SUPPORT \
68        ${destroot}${docdir}
69    copy ${worksrcpath}/docs ${destroot}${docdir}
70}
71
72if {[vercmp ${os.version} 10] >= 0} {
73    patchfiles-append patch-Makefile-fixpam
74}
75
76variant ssl_plaintext description {Allow plaintext passwords over SSL} {
77    patchfiles patch-Makefile
78    build.args-append SSLTYPE=unix
79}
80
81variant universal {
82    build.args-append EXTRACFLAGS="${configure.universal_cflags}" EXTRALDFLAGS="${configure.universal_ldflags}"
83}
84if {![variant_isset universal]} {
85    build.args-append EXTRACFLAGS="${configure.cc_archflags}" EXTRALDFLAGS="${configure.ld_archflags}"
86}
87
88livecheck.type  regex
89livecheck.url   http://ftp.ntua.gr/pub/net/mail/imap/?C=M&O=D
90livecheck.regex {imap-(\d+(?:[a-z]\d*)?)\.tar}
Note: See TracBrowser for help on using the repository browser.