homebrew-core/Formula/ppsspp.rb

41 lines
1.3 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.4",
:revision => "186d471305cad6fe83d8716d6b328f0e8b32b38c"
2017-02-06 10:26:59 +00:00
head "https://github.com/hrydgard/ppsspp.git"
bottle do
cellar :any
2017-04-17 16:43:05 +00:00
sha256 "d5be43193e19576821a9d3972414a670e703eb912b89c1dc1d41a3ffa6a13b37" => :sierra
sha256 "4b1313fc86ef4c94fd67b7d170d863f742578713692629596277fe2f45c00779" => :el_capitan
sha256 "99e2bf86c8767c16eb89da3ab0f2ec38795c61a803679e3484e55954a84bbac7" => :yosemite
2017-02-06 10:26:59 +00:00
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
2017-02-06 10:26:59 +00:00
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