source: trunk/dports/mail/cclient/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 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
RevLine 
[20329]1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
[3942]2
[62374]3PortSystem      1.0
[11348]4
[62374]5name            cclient
[106350]6version         2007f
[146517]7revision        1
[62375]8license         Apache-2
[62374]9platforms       darwin
[62375]10categories      mail devel
[62374]11maintainers     nomaintainer
12description     UW IMAP c-client library
[3942]13
[62374]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.
[11348]18
[62374]19homepage        http://www.washington.edu/imap/
[62375]20master_sites    ftp://ftp.cac.washington.edu/imap/
[62374]21distname        imap-${version}
22dist_subdir     imap-uw
[11348]23
[106350]24checksums       rmd160  298b09c2da9650cb7bc70094da49bab57878ae20 \
25                sha256  53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28
[62374]26
[139229]27depends_lib     path:lib/libssl.dylib:openssl \
[62375]28                port:zlib \
[62374]29                lib:libgssapi_krb5:kerberos5
30
31worksrcdir      imap-${version}
32
[11348]33post-patch {
[62375]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
[11348]37}
[3247]38
[62374]39use_configure   no
[24609]40
[62374]41build.target    oxp
[62375]42build.args      CC=${configure.cc}
[62374]43
44use_parallel_build no
45
46destroot {
[62375]47    xinstall -d ${destroot}${prefix}/include/c-client
[62374]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
[62375]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}
[62374]64}
65
[89810]66if {[vercmp ${os.version} 10] >= 0} {
[62374]67    patchfiles-append patch-Makefile-fixpam
68}
69
[41308]70variant ssl_plaintext description {Allow plaintext passwords over SSL} {
[106350]71    patchfiles-append patch-Makefile
[62374]72    build.args-append SSLTYPE=unix
[3247]73}
74
[44259]75variant universal {
[62374]76    build.args-append EXTRACFLAGS="${configure.universal_cflags}" EXTRALDFLAGS="${configure.universal_ldflags}"
[41307]77}
[74864]78if {![variant_isset universal]} {
79    build.args-append EXTRACFLAGS="${configure.cc_archflags}" EXTRALDFLAGS="${configure.ld_archflags}"
80}
[41307]81
[57375]82livecheck.type  regex
[33281]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.