lftp: drop minimum macOS requirement

avoid system openssl headers by moving openssl's CPPFLAGS before zlib's

Closes #9965.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
master
ilovezfs 2017-02-14 06:31:37 -08:00
parent 6e9ff3afe8
commit 248a6c7d18
1 changed files with 6 additions and 4 deletions

View File

@ -14,10 +14,6 @@ class Lftp < Formula
depends_on "openssl"
depends_on "libidn"
# On Yosemite, the system's openssl gets chosen over ours, and it is too old
# https://github.com/lavv17/lftp/issues/317
depends_on :macos => :el_capitan
# Fix a cast issue, patch was merged upstream: https://github.com/lavv17/lftp/pull/307
# Remove when lftp-4.7.6 is released
patch do
@ -26,6 +22,12 @@ class Lftp < Formula
end
def install
# Fix "error: use of undeclared identifier 'SSL_OP_NO_TLSv1_1'"
# Reported 6 Feb 2017 https://github.com/lavv17/lftp/issues/317
# Equivalent to upstream PR from 14 Feb 2017 https://github.com/lavv17/lftp/pull/321
inreplace "src/Makefile.in", "$(ZLIB_CPPFLAGS) $(OPENSSL_CPPFLAGS)",
"$(OPENSSL_CPPFLAGS) $(ZLIB_CPPFLAGS)"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-openssl=#{Formula["openssl"].opt_prefix}",