homebrew-core/Formula/ppsspp.rb

40 lines
1.2 KiB
Ruby
Raw Normal View History

2017-02-06 10:26:59 +00:00
class Ppsspp < Formula
desc "PlayStation Portable emulator"
2017-03-16 15:46:17 +00:00
homepage "https://ppsspp.org/"
2017-02-06 10:26:59 +00:00
url "https://github.com/hrydgard/ppsspp.git",
:tag => "v1.3",
:revision => "6d0d36bf914a3f5373627a362d65facdcfbbfe5f"
head "https://github.com/hrydgard/ppsspp.git"
bottle do
cellar :any
2017-02-08 08:28:16 +00:00
sha256 "b56e2d528201db2b00fc882c79894ac52a203426ecaf5f907d29eb92e6fa2f48" => :sierra
sha256 "b140b43c431be3d32ce16a39ebe34e94dc0f09eb726033e6dd32da8735ad9d6e" => :el_capitan
sha256 "33724f504e60de3b402c4a2046550eeef4bbd8ccdd5275bba9220781d8f4a3db" => :yosemite
2017-02-06 10:26:59 +00:00
end
depends_on "cmake" => :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