From 3a4e191a9eb6bc08de0aee7c1e8962c099d47d32 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 28 Jul 2024 10:29:39 -0400 Subject: [PATCH] postgis: declare indirect deps with linkage Signed-off-by: Rui Chen --- Formula/p/postgis.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Formula/p/postgis.rb b/Formula/p/postgis.rb index 2bb3dedbdf1ef..3cc970362862e 100644 --- a/Formula/p/postgis.rb +++ b/Formula/p/postgis.rb @@ -31,16 +31,24 @@ class Postgis < Formula depends_on "gpp" => :build depends_on "pkg-config" => :build + depends_on "gdal" # for GeoJSON and raster handling depends_on "geos" depends_on "icu4c" depends_on "json-c" # for GeoJSON and raster handling + depends_on "libxml2" depends_on "pcre2" depends_on "postgresql@14" depends_on "proj" depends_on "protobuf-c" # for MVT (map vector tiles) support depends_on "sfcgal" # for advanced 2D/3D functions + uses_from_macos "llvm" + + on_linux do + depends_on "libpq" + end + fails_with gcc: "5" # C++17 def postgresql