# $Id: Portfile 33281 2008-01-22 15:54:42Z nox@macports.org $ PortSystem 1.0 name cclient version 2007 categories mail maintainers pguyot@kallisys.net description UW IMAP c-client library long_description \ C-client is a common API for accessing mailboxes. It is \ used internally by the popular PINE mail reader as well as the \ University of Washington's IMAP server. homepage http://www.washington.edu/imap/ platforms darwin master_sites ftp://ftp.cac.washington.edu/imap/ \ ftp://ftp.cac.washington.edu/imap/old/ \ macports:pguyot extract.suffix .tar.Z distname imap-${version} dist_subdir imap-uw worksrcdir imap-${version} checksums md5 8162c341dd3a08d18b369a745cf83838 \ sha1 638fa748bd3eb32191799bc20db0cc383f9fedbe \ rmd160 7fe7f72c192e1d150b3c533261142459db600c3e depends_lib port:openssl \ lib:libz:zlib \ lib:libgssapi_krb5:kerberos5 use_configure no post-patch { reinplace "s|/System/Library/OpenSSL SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib|${prefix}/etc/openssl SSLINCLUDE=${prefix}/include SSLLIB=${prefix}/lib|g" ${worksrcpath}/Makefile reinplace "s| -Wno-pointer-sign||g" ${worksrcpath}/src/osdep/unix/Makefile } build.target oxp EXTRACFLAGS=-fno-common variant ssl_plaintext { patchfiles patch-Makefile build.args SSLTYPE=unix } destroot { xinstall -m 755 -d ${destroot}${prefix}/include/c-client xinstall -m 644 -W ${worksrcpath}/c-client \ c-client.h dummy.h env.h env_unix.h fdstring.h flockcyg.h flocksim.h \ flstring.h fs.h ftl.h imap4r1.h linkage.c linkage.h mail.h \ misc.h netmsg.h newsrc.h nl.h nntp.h osdep.h \ pseudo.h rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h \ utf8.h utf8aux.h \ ${destroot}${prefix}/include/c-client xinstall -m 644 ${worksrcpath}/c-client/c-client.a \ ${destroot}${prefix}/lib/libc-client4.a system "cd ${destroot}${prefix}/lib/ && ranlib libc-client4.a" } livecheck.check regex livecheck.url http://ftp.ntua.gr/pub/net/mail/imap/?C=M&O=D livecheck.regex {imap-(\d+(?:[a-z]\d*)?)\.tar}