Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sfml 3.0.0 #202104

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

sfml 3.0.0 #202104

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Formula/c/csfml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
url "https://github.com/SFML/CSFML/archive/refs/tags/2.6.1.tar.gz"
sha256 "f3f3980f6b5cad85b40e3130c10a2ffaaa9e36de5f756afd4aacaed98a7a9b7b"
license "Zlib"
revision 1
head "https://github.com/SFML/CSFML.git", branch: "master"

bottle do
Expand All @@ -21,7 +22,7 @@
depends_on "cmake" => :build
depends_on "sfml"

def install

Check failure on line 25 in Formula/c/csfml.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle csfml` failed on macOS Sonoma (14) on Apple Silicon!

::error::csfml 2.6.1 did not build

Check failure on line 25 in Formula/c/csfml.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --formula --build-bottle csfml` failed on macOS Ventura (13) on Apple Silicon!

::error::csfml 2.6.1 did not build
system "cmake", ".", "-DCMAKE_MODULE_PATH=#{Formula["sfml"].share}/SFML/cmake/Modules/", *std_cmake_args
system "make", "install"
end
Expand Down
16 changes: 9 additions & 7 deletions Formula/s/sfml.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Sfml < Formula

Check notice on line 1 in Formula/s/sfml.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

Bottle cache hit

Bottle for sfml built at 2911caa7af7 (Merge 3b396304badae6db207b93b73a628d8b855ea1a1 into 7c3f5707a83eefc405c15dd60acd5c6383187ff2, 2024-12-23)

Check notice on line 1 in Formula/s/sfml.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Bottle cache hit

Bottle for sfml built at 2911caa7af7 (Merge 3b396304badae6db207b93b73a628d8b855ea1a1 into 7c3f5707a83eefc405c15dd60acd5c6383187ff2, 2024-12-23)

Check notice on line 1 in Formula/s/sfml.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Bottle cache hit

Bottle for sfml built at 2911caa7af7 (Merge 3b396304badae6db207b93b73a628d8b855ea1a1 into 7c3f5707a83eefc405c15dd60acd5c6383187ff2, 2024-12-23)
# Don't update SFML until there's a corresponding CSFML release
desc "Multi-media library with bindings for multiple languages"
homepage "https://www.sfml-dev.org/"
url "https://www.sfml-dev.org/files/SFML-2.6.2-sources.zip"
sha256 "19d6dbd9c901c74441d9888c13cb1399f614fe8993d59062a72cfbceb00fed04"
url "https://www.sfml-dev.org/files/SFML-3.0.0-sources.zip"
sha256 "8cc41db46b59f07c44ecf21c74a0f956d37735dec9d90ff4522856cb162ba642"
license "Zlib"
head "https://github.com/SFML/SFML.git", branch: "master"

Expand All @@ -18,6 +18,7 @@

depends_on "cmake" => :build
depends_on "doxygen" => :build
depends_on "pkgconf" => :build
depends_on "flac"
depends_on "freetype"
depends_on "libogg"
Expand All @@ -26,6 +27,7 @@
on_linux do
depends_on "libx11"
depends_on "libxcursor"
depends_on "libxi"
depends_on "libxrandr"
depends_on "mesa"
depends_on "mesa-glu"
Expand All @@ -47,12 +49,12 @@
args = ["-DCMAKE_INSTALL_RPATH=#{lib}",
"-DSFML_MISC_INSTALL_PREFIX=#{share}/SFML",
"-DSFML_INSTALL_PKGCONFIG_FILES=TRUE",
"-DSFML_BUILD_DOC=TRUE"]

args << "-DSFML_USE_SYSTEM_DEPS=ON" if OS.linux?
"-DSFML_BUILD_DOC=TRUE",
"-DSFML_USE_SYSTEM_DEPS=ON"]

system "cmake", "-S", ".", "-B", "build", *std_cmake_args, *args
system "cmake", "--build", "build"
system "cmake", "--build", "build", "--target=doc"
system "cmake", "--install", "build"
end

Expand All @@ -64,8 +66,8 @@
return 0;
}
CPP
system ENV.cxx, "-I#{include}/SFML/System", testpath/"test.cpp",
"-L#{lib}", "-lsfml-system", "-o", "test"
system ENV.cxx, "-I#{include}/SFML/System", "-std=c++17", testpath/"test.cpp",
"-L#{lib}", "-o", "test"
system "./test"
end
end
1 change: 1 addition & 0 deletions Formula/t/tgui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
url "https://github.com/texus/TGUI/archive/refs/tags/v1.6.1.tar.gz"
sha256 "c9ee4dd9107a107bc818368691c607ab812fd8cf18d02effbe8a1413edea657f"
license "Zlib"
revision 1

livecheck do
url :stable
Expand All @@ -22,7 +23,7 @@
depends_on "cmake" => :build
depends_on "sfml"

def install

Check failure on line 26 in Formula/t/tgui.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle tgui` failed on macOS Sonoma (14) on Apple Silicon!

::error::tgui 1.7.0 did not build

Check failure on line 26 in Formula/t/tgui.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --formula --build-bottle tgui` failed on macOS Ventura (13) on Apple Silicon!

::error::tgui 1.7.0 did not build
args = %W[
-DTGUI_MISC_INSTALL_PREFIX=#{pkgshare}
-DTGUI_BACKEND=SFML_GRAPHICS
Expand Down
Loading