40 lines
1.3 KiB
Ruby
40 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.7.1",
|
|
:revision => "fdb07323e0878e4773011a7a51a43a8900ad9d4a"
|
|
head "https://github.com/hrydgard/ppsspp.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "b17535d5ec300b6a3951255d647c8f3ac435c8e612589f109f2b1ce87bb1f410" => :mojave
|
|
sha256 "3a22cadfdd18d480dfd03afec60e238b413082da2cff96fef006d6b8fda3a464" => :high_sierra
|
|
sha256 "a93c6d6d90d039c2de981e6ea6ccfbcd27ab3228f50bd8262df3e8837b202b65" => :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
|