Commit f9063a7

Nick Faro committed on
Use custom formula for rgbds, hopefully work on old macos versions
commit f9063a78e944bef2984ca1fdc3c68e70b96761f9 parent c23f8a7
2 changed files +29−1
Added.github/brew/rgbds.rb +28−0
@@ -0,0 +1,28 @@
1 class Rgbds < Formula
2 desc "Rednex GameBoy Development System"
3 homepage "https://rgbds.gbdev.io"
4 url "https://github.com/gbdev/rgbds/archive/refs/tags/v0.7.0.tar.gz"
5 sha256 "ef04d24d7a79c05ffadac0c08214f59b8d8812c7d1052a585e5ab0145f093b30"
6 license "MIT"
7 head "https://github.com/gbdev/rgbds.git", branch: "master"
8
9 livecheck do
10 url :stable
11 strategy :github_latest
12 end
13
14 depends_on "bison" => :build
15 depends_on "cmake" => :build
16 depends_on "pkg-config" => :build
17 depends_on "libpng"
18
19 def install
20 system "cmake", "-S", ".", "-B", "build",
21 "-DCMAKE_C_FLAGS=-O3 -flto -DNDEBUG -mmacosx-version-min=10.9",
22 "-DCMAKE_CXX_FLAGS=-O3 -flto -DNDEBUG -mmacosx-version-min=10.9",
23 *std_cmake_args
24
25 system "cmake", "--build", "build"
26 system "cmake", "--install", "build"
27 end
28 end
Modified.github/workflows/build.yml +1−1
@@ -49,7 +49,7 @@ jobs:
49 if: matrix.name == 'Mac' 49 if: matrix.name == 'Mac'
50 run: | 50 run: |
51 brew install --cask hUGETracker/.github/brew/lazarus.rb 51 brew install --cask hUGETracker/.github/brew/lazarus.rb
52 brew install rgbds 52 brew install hUGETracker/.github/brew/rgbds.rb
53 brew install automake libtool shtool wget yasm 53 brew install automake libtool shtool wget yasm
54 54
55 curl -Lo 'sdl2.tgz' https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.28.5.tar.gz 55 curl -Lo 'sdl2.tgz' https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.28.5.tar.gz