diff --git a/Formula/reminiscence.rb b/Formula/reminiscence.rb index d99f86be20..045617b54f 100644 --- a/Formula/reminiscence.rb +++ b/Formula/reminiscence.rb @@ -1,8 +1,8 @@ class Reminiscence < Formula desc "Flashback engine reimplementation" homepage "http://cyxdown.free.fr/reminiscence/" - url "http://cyxdown.free.fr/reminiscence/REminiscence-0.3.2.tar.bz2" - sha256 "063a1d9bb61a91ffe7de69516e48164a1d4d5d240747968bed4fd292d5df546f" + url "http://cyxdown.free.fr/reminiscence/REminiscence-0.3.4.tar.bz2" + sha256 "d389fe2fc4ec151dc072aac98c94333972c0cd37d9109994bc845167074e3913" bottle do cellar :any @@ -12,13 +12,32 @@ class Reminiscence < Formula sha256 "ca207b017eebbf2b7e9aca765f2c73aadef3a1f66b602e67189f1b8534e91c11" => :yosemite 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 - # REminiscence supports both SDL1 and 2 - # Use SDL2 to have better input support - inreplace "Makefile", "sdl-config", "sdl2-config" + 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