Skip to content

Commit

Permalink
tgui: revision bump (sfml 3.0.0)
Browse files Browse the repository at this point in the history
tgui: update test

```
  ==> ./test
  ./test: error while loading shared libraries: libsfml-graphics.so.2.6: cannot open shared object file: No such file or directory
  Error: tgui: failed
  An exception occurred within a child process:
    BuildError: Failed executing: ./test
```

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 25, 2024
1 parent 7375049 commit e900059
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Formula/t/tgui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Tgui < Formula
url "https://github.com/texus/TGUI/archive/refs/tags/v1.7.0.tar.gz"
sha256 "7d40359770e2f8e534a57332c99fd56c72cf79a8b59642676e01394fe05cb1fa"
license "Zlib"
revision 1

livecheck do
url :stable
Expand All @@ -20,7 +21,7 @@ class Tgui < Formula
end

depends_on "cmake" => :build
depends_on "sfml"
depends_on "sfml@2" # sfml 3.0 build issue report, https://github.com/texus/TGUI/issues/249

def install
args = %W[
Expand Down Expand Up @@ -49,8 +50,10 @@ def install
return 0;
}
CPP
system ENV.cxx, "test.cpp", "-std=c++17", "-I#{include}",
"-L#{lib}", "-L#{Formula["sfml"].opt_lib}",

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}",
"-ltgui", "-lsfml-graphics", "-lsfml-system", "-lsfml-window",
"-o", "test"
system "./test"
Expand Down

0 comments on commit e900059

Please sign in to comment.