source: trunk/dports/mail/cclient/Portfile

Last change on this file was 146517, checked in by raimue@…, 15 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

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