Ticket #5011: Portfile

File Portfile, 2.2 KB (added by ben@…, 19 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.13 2005/08/28 10:49:10 pguyot Exp $
2
3PortSystem 1.0
4
5name                    cclient
6version                 2004g
7categories              mail
8maintainers             pguyot@kallisys.net
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                                http://public.www.planetmirror.com/pub/imap/ \
19                                opendarwin
20extract.suffix  .tar.Z
21distname                imap-${version}
22dist_subdir             imap-uw
23worksrcdir              imap-${version}
24checksums               md5 9a80f58d8d6a0979c13714ae69050020
25
26depends_lib             port:openssl \
27                                lib:libz:zlib
28
29use_configure   no
30
31post-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}
36build.target    osx EXTRACFLAGS=-fno-common
37
38variant ssl_plaintext {
39        patchfiles patch-Makefile
40        build.args SSLTYPE=unix
41}
42
43destroot {
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