diff options
| author | Tim D. Smith | 2014-11-02 17:38:21 -0800 |
|---|---|---|
| committer | Tim D. Smith | 2014-11-05 19:11:17 -0800 |
| commit | 6f42d6aeb0b7b43d94aec5ceb7b7dc6224293c5e (patch) | |
| tree | edabac45357c2a84faf5d156a782084aaeff0652 /Library | |
| parent | 42b51fe10e0377e1f3160869b70817188a95b83c (diff) | |
| download | homebrew-6f42d6aeb0b7b43d94aec5ceb7b7dc6224293c5e.tar.bz2 | |
imap-uw: use Homebrew OpenSSL
Closes #33845.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/imap-uw.rb | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Library/Formula/imap-uw.rb b/Library/Formula/imap-uw.rb index 2c6f19079..f609c738d 100644 --- a/Library/Formula/imap-uw.rb +++ b/Library/Formula/imap-uw.rb @@ -6,15 +6,20 @@ class ImapUw < Formula mirror 'http://ftp.ntua.gr/pub/net/mail/imap/imap-2007f.tar.gz' sha1 '7a82ebd5aae57a5dede96ac4923b63f850ff4fa7' - patch :p0 do - url "https://trac.macports.org/export/63088/trunk/dports/mail/imap-uw/files/patch-snowleopard.diff" - sha1 "03dec6527fc6b21be6eddc2a38cb93f11fe65bd6" - end if MacOS.version >= :snow_leopard + depends_on "openssl" def install ENV.j1 - - system 'make oxp' + inreplace "Makefile" do |s| + s.gsub! "SSLINCLUDE=/usr/include/openssl", + "SSLINCLUDE=#{Formula["openssl"].opt_include}/openssl" + s.gsub! "SSLLIB=/usr/lib", + "SSLLIB=#{Formula["openssl"].opt_lib}" + s.gsub! "-DMAC_OSX_KLUDGE=1", "" if MacOS.version >= :snow_leopard + end + inreplace "src/osdep/unix/ssl_unix.c", "#include <x509v3.h>\n#include <ssl.h>", + "#include <ssl.h>\n#include <x509v3.h>" + system "make", "oxp" # email servers: sbin.install 'imapd/imapd', 'ipopd/ipop2d', 'ipopd/ipop3d' |
