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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 2 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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