Ticket #772: Portfile

File Portfile, 4.6 KB (added by bchesneau@…, 21 years ago)

Portfile

Line 
1PortSystem 1.0
2name            cclient
3version         2002d
4categories      mail
5maintainers     bchesneau@mac.com
6description     UW IMAP c-client library
7homepage                http://www.washington.edu/imap/
8platforms       darwin
9master_sites    ftp://ftp.cac.washington.edu/imap/\
10                                http://distfiles.opendarwin.org/
11extract.sufx    .tar.Z
12distname                imap-${version}
13worksrcdir      imap-${version}
14checksums       imap-2002d.tar.Z md5 64e82a195d21481fc4c54c4ed9fe0527
15
16
17configure { }
18
19variant ssl {
20        patchfiles patch-Makefile
21        build.args              SSLTYPE=unix
22}
23
24build.target    osx
25
26
27destroot {
28       
29       
30        #headers
31        file mkdir ${destroot}${prefix}/include/c-client
32        system "install -m 755 ${worksrcpath}/c-client/c-client.h ${destroot}${prefix}/include/c-client/c-client.h"
33        system "install -m 755 ${worksrcpath}/c-client/dummy.h ${destroot}${prefix}/include/c-client/dummy.h"
34        system "install -m 755 ${worksrcpath}/c-client/env.h ${destroot}${prefix}/include/c-client/env.h"
35        system "install -m 755 ${worksrcpath}/c-client/fdstring.h  ${destroot}${prefix}/include/c-client/fdstring.h"
36        system "install -m 755 ${worksrcpath}/c-client/flocksim.h ${destroot}${prefix}/include/c-client/flocksim.h"
37        system "install -m 755 ${worksrcpath}/c-client/env_unix.h ${destroot}${prefix}/include/c-client/env_unix.h"
38        system "install -m 755 ${worksrcpath}/c-client/flstring.h ${destroot}${prefix}/include/c-client/flstring.h"
39        system "install -m 755 ${worksrcpath}/c-client/fs.h ${destroot}${prefix}/include/c-client/fs.h"
40        system "install -m 755 ${worksrcpath}/c-client/ftl.h ${destroot}${prefix}/include/c-client/ftl.h"
41        system "install -m 755 ${worksrcpath}/c-client/imap4r1.h ${destroot}${prefix}/include/c-client/imap4r1.h"
42        system "install -m 755 ${worksrcpath}/c-client/linkage.c ${destroot}${prefix}/include/c-client/linkage.c"
43        system "install -m 755 ${worksrcpath}/c-client/linkage.h ${destroot}${prefix}/include/c-client/linkage.h"
44        system "install -m 755 ${worksrcpath}/c-client/mail.h ${destroot}${prefix}/include/c-client/mail.h"
45        system "install -m 755 ${worksrcpath}/c-client/mbox.h ${destroot}${prefix}/include/c-client/mbox.h"
46        system "install -m 755 ${worksrcpath}/c-client/mbx.h ${destroot}${prefix}/include/c-client/mbx.h"
47        system "install -m 755 ${worksrcpath}/c-client/mh.h ${destroot}${prefix}/include/c-client/mh.h"
48        system "install -m 755 ${worksrcpath}/c-client/misc.h ${destroot}${prefix}/include/c-client/misc.h"
49        system "install -m 755 ${worksrcpath}/c-client/mmdf.h ${destroot}${prefix}/include/c-client/mmdf.h"
50        system "install -m 755 ${worksrcpath}/c-client/mtx.h ${destroot}${prefix}/include/c-client/mtx.h"
51        system "install -m 755 ${worksrcpath}/c-client/mx.h ${destroot}${prefix}/include/c-client/mx.h"
52        system "install -m 755 ${worksrcpath}/c-client/netmsg.h ${destroot}${prefix}/include/c-client/netmsg.h"
53        system "install -m 755 ${worksrcpath}/c-client/news.h ${destroot}${prefix}/include/c-client/news.h "
54        system "install -m 755 ${worksrcpath}/c-client/newsrc.h ${destroot}${prefix}/include/c-client/newsrc.h"
55        system "install -m 755 ${worksrcpath}/c-client/nl.h ${destroot}${prefix}/include/c-client/nl.h"
56        system "install -m 755 ${worksrcpath}/c-client/nntp.h ${destroot}${prefix}/include/c-client/nntp.h"
57        system "install -m 755 ${worksrcpath}/c-client/osdep.h ${destroot}${prefix}/include/c-client/osdep.h"
58        system "install -m 755 ${worksrcpath}/c-client/phile.h ${destroot}${prefix}/include/c-client/phile.h"
59        system "install -m 755 ${worksrcpath}/c-client/pop3.h ${destroot}${prefix}/include/c-client/pop3.h"
60        system "install -m 755 ${worksrcpath}/c-client/pseudo.h ${destroot}${prefix}/include/c-client/pseudo.h"
61        system "install -m 755 ${worksrcpath}/c-client/rfc822.h ${destroot}${prefix}/include/c-client/rfc822.h"
62        system "install -m 755 ${worksrcpath}/c-client/smtp.h ${destroot}${prefix}/include/c-client/smtp.h"
63        system "install -m 755 ${worksrcpath}/c-client/sslio.h ${destroot}${prefix}/include/c-client/sslio.h"
64        system "install -m 755 ${worksrcpath}/c-client/tcp.h ${destroot}${prefix}/include/c-client/tcp.h"
65        system "install -m 755 ${worksrcpath}/c-client/tcp_unix.h ${destroot}${prefix}/include/c-client/tcp_unix.h"
66        system "install -m 755 ${worksrcpath}/c-client/tenex.h ${destroot}${prefix}/include/c-client/tenex.h"
67        system "install -m 755 ${worksrcpath}/c-client/unix.h ${destroot}${prefix}/include/c-client/unix.h"
68        system "install -m 755 ${worksrcpath}/c-client/utf8.h ${destroot}${prefix}/include/c-client/utf8.h"
69                     
70       
71               
72        #library
73        file mkdir ${prefix}/lib
74
75        system "install -m 755 ${worksrcpath}/c-client/c-client.a ${destroot}${prefix}/lib/libc-client4.a"
76       
77       
78}
79
80
81post-destroot {
82        system "cd ${destroot}${prefix}/lib/ && ranlib libc-client4.a"
83
84
85}