postgresql@9.4: move to OpenSSL 1.1

This commit is contained in:
FX Coudert 2019-09-04 17:03:03 +02:00
parent 94b353f55a
commit ad2c1f28bf

View file

@ -3,6 +3,7 @@ class PostgresqlAT94 < Formula
homepage "https://www.postgresql.org/"
url "https://ftp.postgresql.org/pub/source/v9.4.24/postgresql-9.4.24.tar.bz2"
sha256 "52253d67dd46a7463a9d7c5e82bf959931fa4c11ec56293150210fa82a0f9429"
revision 1
bottle do
sha256 "8fd93851baa963151a2528239a0ec5afd36bfd0571732082d201a61271c1ca71" => :mojave
@ -12,7 +13,7 @@ class PostgresqlAT94 < Formula
keg_only :versioned_formula
depends_on "openssl"
depends_on "openssl@1.1"
depends_on "readline"
def install
@ -21,8 +22,8 @@ class PostgresqlAT94 < Formula
ENV["SDKROOT"] = MacOS.sdk_path
end
ENV.prepend "LDFLAGS", "-L#{Formula["openssl"].opt_lib} -L#{Formula["readline"].opt_lib}"
ENV.prepend "CPPFLAGS", "-I#{Formula["openssl"].opt_include} -I#{Formula["readline"].opt_include}"
ENV.prepend "LDFLAGS", "-L#{Formula["openssl@1.1"].opt_lib} -L#{Formula["readline"].opt_lib}"
ENV.prepend "CPPFLAGS", "-I#{Formula["openssl@1.1"].opt_include} -I#{Formula["readline"].opt_include}"
ENV.prepend "PG_SYSROOT", MacOS.sdk_path
ENV.append_to_cflags "-D_XOPEN_SOURCE"