mirror of
https://github.com/grumpycoders/pcsx-redux.git
synced 2024-06-01 02:38:33 -04:00
Add homebrew formula for GDB with Mips support
This commit is contained in:
parent
6929290666
commit
6a5f6586bd
31
tools/macos-mips/mipsel-none-elf-gdb.rb
Normal file
31
tools/macos-mips/mipsel-none-elf-gdb.rb
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
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-14.2.tar.xz"
|
||||||
|
sha256 "2d4dd8061d8ded12b6c63f55e45344881e8226105f4d2a9b234040efa5ce7772"
|
||||||
|
|
||||||
|
# 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
|
Loading…
Reference in a new issue