diff --git a/Formula/minetest.rb b/Formula/minetest.rb index 494e0d2..bbf392f 100644 --- a/Formula/minetest.rb +++ b/Formula/minetest.rb @@ -46,7 +46,7 @@ class Minetest < Formula depends_on "libvorbis" depends_on "luajit" depends_on "zstd" - depends_on "postgresql" + depends_on "libpq" uses_from_macos "curl" uses_from_macos "ncurses" @@ -79,8 +79,8 @@ def install -DCMAKE_EXE_LINKER_FLAGS='-L#{Formula["freetype"].opt_lib}' -DENABLE_GETTEXT=1 -DCUSTOM_GETTEXT_PATH=#{Formula["gettext"].opt_prefix} - -DPostgreSQL_INCLUDE_DIR='#{Formula["postgresql"].opt_prefix}' - -DPostgreSQL_LIBRARY='#{Formula["postgresql"].opt_lib}' + -DPostgreSQL_INCLUDE_DIR='#{Formula["libpq"].opt_prefix}' + -DPostgreSQL_LIBRARY='#{Formula["libpq"].opt_lib}' ] # Workaround for 'Could NOT find GettextLib (missing: ICONV_LIBRARY)' args << "-DICONV_LIBRARY=#{MacOS.sdk_path}/usr/lib/libiconv.tbd" if OS.mac? && MacOS.version >= :big_sur