class Ppsspp < Formula desc "PlayStation Portable emulator" homepage "https://ppsspp.org/" url "https://github.com/hrydgard/ppsspp.git", :tag => "v1.4", :revision => "186d471305cad6fe83d8716d6b328f0e8b32b38c" head "https://github.com/hrydgard/ppsspp.git" bottle do cellar :any sha256 "d5be43193e19576821a9d3972414a670e703eb912b89c1dc1d41a3ffa6a13b37" => :sierra sha256 "4b1313fc86ef4c94fd67b7d170d863f742578713692629596277fe2f45c00779" => :el_capitan sha256 "99e2bf86c8767c16eb89da3ab0f2ec38795c61a803679e3484e55954a84bbac7" => :yosemite 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