class Reminiscence < Formula desc "Flashback engine reimplementation" homepage "http://cyxdown.free.fr/reminiscence/" url "http://cyxdown.free.fr/reminiscence/REminiscence-0.3.7.tar.bz2" sha256 "3e1b9d8e260e5aca086c4a95a833abb2918a2a81047df706770b8f7dcda1934f" bottle do cellar :any sha256 "ac5c1018c11c7050e248722bf6956dc6cd82a68eb7eb9db9917743815ffe027d" => :high_sierra sha256 "5c82408dca2c80f1f11e433a94f91b9689adf701d597c0c7e8a729c54373ce41" => :sierra sha256 "f8f3f8688125d6b24fc99df7f4d8acf29140b0fdf637dcb2d540b02600105355" => :el_capitan end depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build depends_on "pkg-config" => :build depends_on "libmodplug" depends_on "libogg" depends_on "sdl2" resource "tremor" do url "https://git.xiph.org/tremor.git", :revision => "b56ffce0c0773ec5ca04c466bc00b1bbcaf65aef" end def install resource("tremor").stage do system "autoreconf", "-fiv" system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", "--prefix=#{libexec}", "--disable-static" system "make", "install" end ENV.prepend "CPPFLAGS", "-I#{libexec}/include" ENV.prepend "LDFLAGS", "-L#{libexec}/lib" system "make" bin.install "rs" => "reminiscence" end test do system bin/"reminiscence", "--help" end end