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.4",
|
|
:revision => "04b4dedfcacca4edef2d71d53eb2eb94568382e1"
|
|
head "https://github.com/hrydgard/ppsspp.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "f28ac573a035430593f3c4c274979b6a99408e45aba0efb10f6655152135c457" => :mojave
|
|
sha256 "8d39048a9d6263134bb665e787925151574bff9b2eaf680cf2a37a5df0f99fac" => :high_sierra
|
|
sha256 "96e36a5e2ad20fa478819202f9beba09ee2153c1242c1ad81ae8adf9cc169047" => :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
|