From 09d0bd67454f17c721eb025b1db61dcbaddac52e Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Fri, 10 Jan 2025 22:58:17 -0500 Subject: [PATCH] tgui: use `sfml` --- Formula/t/tgui.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Formula/t/tgui.rb b/Formula/t/tgui.rb index d34ab0d0d2127..d62d5ce4f88ed 100644 --- a/Formula/t/tgui.rb +++ b/Formula/t/tgui.rb @@ -21,7 +21,7 @@ class Tgui < Formula end depends_on "cmake" => :build - depends_on "sfml@2" # sfml 3.0 build issue report, https://github.com/texus/TGUI/issues/249 + depends_on "sfml" def install args = %W[ @@ -51,9 +51,8 @@ def install } CPP - ENV.append_path "LD_LIBRARY_PATH", Formula["sfml@2"].opt_lib if OS.linux? - system ENV.cxx, "test.cpp", "-std=c++17", "-I#{include}", "-I#{Formula["sfml@2"].opt_include}", - "-L#{lib}", "-L#{Formula["sfml@2"].opt_lib}", + system ENV.cxx, "test.cpp", "-std=c++17", "-I#{include}", "-I#{Formula["sfml"].opt_include}", + "-L#{lib}", "-L#{Formula["sfml"].opt_lib}", "-ltgui", "-lsfml-graphics", "-lsfml-system", "-lsfml-window", "-o", "test" system "./test"