1 | # $Id: Portfile,v 1.13 2005/08/28 10:49:10 pguyot Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name cclient |
---|
6 | version 2004g |
---|
7 | categories mail |
---|
8 | maintainers pguyot@kallisys.net |
---|
9 | description UW IMAP c-client library |
---|
10 | long_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. |
---|
14 | homepage http://www.washington.edu/imap/ |
---|
15 | platforms darwin |
---|
16 | master_sites ftp://ftp.cac.washington.edu/imap/ \ |
---|
17 | ftp://ftp.cac.washington.edu/imap/old/ \ |
---|
18 | http://public.www.planetmirror.com/pub/imap/ \ |
---|
19 | opendarwin |
---|
20 | extract.suffix .tar.Z |
---|
21 | distname imap-${version} |
---|
22 | dist_subdir imap-uw |
---|
23 | worksrcdir imap-${version} |
---|
24 | checksums md5 9a80f58d8d6a0979c13714ae69050020 |
---|
25 | |
---|
26 | depends_lib port:openssl \ |
---|
27 | lib:libz:zlib |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | post-patch { |
---|
32 | cd ${worksrcpath} |
---|
33 | reinplace "s|/System/Library/OpenSSL SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib|${prefix}/etc/openssl SSLINCLUDE=${prefix}/include SSLLIB=${prefix}/lib|g" Makefile |
---|
34 | reinplace "s| -Wno-pointer-sign||g" src/osdep/unix/Makefile |
---|
35 | } |
---|
36 | build.target osx EXTRACFLAGS=-fno-common |
---|
37 | |
---|
38 | variant ssl_plaintext { |
---|
39 | patchfiles patch-Makefile |
---|
40 | build.args SSLTYPE=unix |
---|
41 | } |
---|
42 | |
---|
43 | destroot { |
---|
44 | xinstall -m 755 -d ${destroot}${prefix}/include/c-client |
---|
45 | xinstall -m 644 -W ${worksrcpath}/c-client \ |
---|
46 | c-client.h dummy.h env.h fdstring.h flockcyg.h flocksim.h env_unix.h \ |
---|
47 | flstring.h fs.h ftl.h imap4r1.h linkage.c linkage.h mail.h mbx.h mh.h \ |
---|
48 | misc.h mx.h netmsg.h newsrc.h nl.h nntp.h osdep.h \ |
---|
49 | pseudo.h rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h utf8.h \ |
---|
50 | ${destroot}${prefix}/include/c-client |
---|
51 | xinstall -m 644 ${worksrcpath}/c-client/c-client.a \ |
---|
52 | ${destroot}${prefix}/lib/libc-client4.a |
---|
53 | system "cd ${destroot}${prefix}/lib/ && ranlib libc-client4.a" |
---|
54 | } |
---|
55 | |
---|