homebrew-core/Formula/ppsspp.rb
2018-05-26 07:59:39 -07:00

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.6",
:revision => "09e85eb150c927cd501d0c658dff94ba75ae2b92"
head "https://github.com/hrydgard/ppsspp.git"
bottle do
cellar :any
sha256 "5ab8a25040a5823a7268ce7aebd8536d5408651ff6a6455a4cd98a8d7daed6bb" => :high_sierra
sha256 "7a53de0c23edfbae56e71b075198d2fd8940f4e8d634099e18d4e47bf19b49cc" => :sierra
sha256 "4014f7f6774707982050888ff7f5a021027852d02f65c378d75048c002184284" => :el_capitan
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "sdl2"
depends_on "glew"
depends_on "libzip"
depends_on "snappy"
depends_on "ffmpeg"
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