pcsx-redux/tools/macos-mips/mipsel-none-elf-gdb.rb
2024-09-30 21:29:06 -07:00

32 lines
1,020 B
Ruby

class MipselNoneElfGdb < Formula
desc "GDB: The GNU Project Debugger compiled for Mips"
homepage "https://sourceware.org/gdb/"
url "https://ftp.gnu.org/gnu/gdb/gdb-15.1.tar.xz"
mirror "https://mirrors.kernel.org/gnu/gdb/gdb-15.1.tar.xz"
sha256 "38254eacd4572134bca9c5a5aa4d4ca564cbbd30c369d881f733fb6b903354f2"
# inspired by https://github.com/orgs/Homebrew/discussions/1114#discussioncomment-8863715
depends_on "texinfo" => :build
depends_on "gmp"
depends_on "mpfr"
depends_on "python@3.10"
def install
mkdir "mipsel-none-elf-gdb-build" do
system "../configure", "--target=mipsel-none-elf",
"--prefix=#{prefix}",
"--enable-tui=yes",
"--without-isl",
"--disable-werror"
system "make"
system "make", "install"
end
end
# not sure what to test...
# test do
# assert_match "f()", shell_output("#{bin}/mipsel-none-elf-c++filt _Z1fv")
# end
end