class Ppsspp < Formula desc "PlayStation Portable emulator" homepage "https://ppsspp.org/" url "https://github.com/hrydgard/ppsspp.git", :tag => "v1.5.2", :revision => "d032b41d949c6ffb90814d56a2fcd022eeea8ca6" head "https://github.com/hrydgard/ppsspp.git" bottle do cellar :any sha256 "eec947e99192776b6d2edbe049c28e9e05b99bff31b7f23cd42428372d370be2" => :high_sierra sha256 "ab407f6dbf9f82b0afdddfe314f55363f6c959c88bf0fbbb7b8150510b1eedd7" => :sierra sha256 "422e8fad4d8feaf00c9b2a3551381952d65347fe5d298d05746417acd82254c8" => :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