source: trunk/dports/mail/cclient/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.2 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                    cclient
6version                 2007d
7categories              mail
8maintainers             kallisys.net:pguyot openmaintainer
9description             UW IMAP c-client library
10long_description        \
11                                C-client is a common API for accessing mailboxes. It is \
12                                used internally by the popular PINE mail reader as well as the \
13                                University of Washington's IMAP server.
14homepage                http://www.washington.edu/imap/
15platforms               darwin
16master_sites    ftp://ftp.cac.washington.edu/imap/ \
17                                ftp://ftp.cac.washington.edu/imap/old/ \
18                                macports:pguyot
19distname                imap-${version}
20dist_subdir             imap-uw
21worksrcdir              imap-${version}
22checksums           md5     ec27cd4c5972b981bb96e9da0430af53 \
23                    sha1    c77a3feaa68fa8a73eea85718e66eba9ae3e222c \
24                    rmd160  d403678f83e761237cbdf62b4bcde466cdf85123
25
26depends_lib             port:openssl \
27                                lib:libz:zlib \
28                                lib:libgssapi_krb5:kerberos5
29
30use_configure   no
31
32post-patch {
33        reinplace "s|/System/Library/OpenSSL SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib|${prefix}/etc/openssl SSLINCLUDE=${prefix}/include SSLLIB=${prefix}/lib|g" ${worksrcpath}/Makefile
34        reinplace "s| -Wno-pointer-sign||g" ${worksrcpath}/src/osdep/unix/Makefile
35}
36
37build.target    oxp
38build.args              EXTRACFLAGS=-fno-common CC=${configure.cc}
39
40variant ssl_plaintext description {Allow plaintext passwords over SSL} {
41        patchfiles patch-Makefile
42        build.args-append SSLTYPE=unix
43}
44
45variant universal {
46        build.args-delete EXTRACFLAGS="-fno-common"
47        build.args-append EXTRACFLAGS="${configure.universal_cflags}" EXTRALDFLAGS="${configure.universal_ldflags}"
48}
49
50destroot {
51        xinstall -m 755 -d ${destroot}${prefix}/include/c-client
52        xinstall -m 644 -W ${worksrcpath}/c-client \
53                c-client.h dummy.h env.h env_unix.h fdstring.h flockcyg.h flocksim.h \
54                flstring.h fs.h ftl.h imap4r1.h linkage.c linkage.h mail.h \
55                misc.h netmsg.h newsrc.h nl.h nntp.h osdep.h \
56                pseudo.h rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h \
57                utf8.h utf8aux.h \
58                ${destroot}${prefix}/include/c-client
59        xinstall -m 644 ${worksrcpath}/c-client/c-client.a \
60                ${destroot}${prefix}/lib/libc-client4.a
61        system "cd ${destroot}${prefix}/lib/ && ranlib libc-client4.a"
62}
63
64livecheck.check regex
65livecheck.url   http://ftp.ntua.gr/pub/net/mail/imap/?C=M&O=D
66livecheck.regex {imap-(\d+(?:[a-z]\d*)?)\.tar}
Note: See TracBrowser for help on using the repository browser.