class Ppsspp < Formula desc "PlayStation Portable emulator" homepage "https://ppsspp.org/" url "https://github.com/hrydgard/ppsspp.git", :tag => "v1.5.1", :revision => "e9303fd1cdf8490f2cc56d201b25480538366c1f" head "https://github.com/hrydgard/ppsspp.git" bottle do cellar :any sha256 "b12b84f58af0a684b542d8178df59e2b1cc100755e2264f7dc21a9ae1018325d" => :high_sierra sha256 "700de52d61ce3440721e04824c7e93735270765032551ec92b6ede81be25f543" => :sierra sha256 "b52f2245c77a7ddbbb9c2a819537557e97dd41a75c632b01eb8d45a6e317f14a" => :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