41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
class Ppsspp < Formula
|
|
desc "PlayStation Portable emulator"
|
|
homepage "https://ppsspp.org/"
|
|
url "https://github.com/hrydgard/ppsspp.git",
|
|
:tag => "v1.10",
|
|
:revision => "401df203844465b84015d4710c6f02914b890589"
|
|
head "https://github.com/hrydgard/ppsspp.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "2d105f4dee7ae29b1974fa2ebb4ce20958eba5d745205366a1c0358632990f22" => :catalina
|
|
sha256 "8b2f9c147ad1253c0f78162b52b21d1566d88389ea8f8ae36f09f85a43c555ec" => :mojave
|
|
sha256 "f467b15733290f1af196837f23bb8d6440ff1d79d8c178eee35fe476ec445d3e" => :high_sierra
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "ffmpeg"
|
|
depends_on "glew"
|
|
depends_on "libzip"
|
|
depends_on "sdl2"
|
|
depends_on "snappy"
|
|
|
|
def install
|
|
args = std_cmake_args
|
|
# Use brewed FFmpeg rather than precompiled binaries in the repo
|
|
args << "-DUSE_SYSTEM_FFMPEG=ON"
|
|
|
|
# fix missing include for zipconf.h
|
|
ENV.append_to_cflags "-I#{Formula["libzip"].opt_prefix}/lib/libzip/include"
|
|
|
|
mkdir "build" do
|
|
system "cmake", "..", *args
|
|
system "make"
|
|
prefix.install "PPSSPPSDL.app"
|
|
bin.write_exec_script "#{prefix}/PPSSPPSDL.app/Contents/MacOS/PPSSPPSDL"
|
|
mv "#{bin}/PPSSPPSDL", "#{bin}/ppsspp"
|
|
end
|
|
end
|
|
end
|