72 lines
2.7 KiB
Ruby
72 lines
2.7 KiB
Ruby
class Reminiscence < Formula
|
|
desc "Flashback engine reimplementation"
|
|
homepage "http://cyxdown.free.fr/reminiscence/"
|
|
url "http://cyxdown.free.fr/reminiscence/REminiscence-0.4.9.tar.bz2"
|
|
sha256 "320463e629c38f2e3aaaa510febacc0c5d88a59f5e906b0500a1dcb9c7e1e935"
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(/href=.*?REminiscence[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_ventura: "7bb3a7ba7f08c9aadd9a95eb5f1ed7936ec593f50f14070627c060d30b58a5cc"
|
|
sha256 cellar: :any, arm64_monterey: "71f92aa98545a961759a62af80f7ca5f83f5fe2c0d933811421c63b846517fd0"
|
|
sha256 cellar: :any, arm64_big_sur: "65baa88dd4251db9f003eda17b92c9b730eaa3592577944bf0c3cd1ee931eb74"
|
|
sha256 cellar: :any, ventura: "3e8f935a4eec174be5f37cb71745060e1238ca6f14231edea2d0d4f3a1dfbeba"
|
|
sha256 cellar: :any, monterey: "0263ce7602723fbf4205670cb0d7125eca9c24b5301d732d1a102c6788510a77"
|
|
sha256 cellar: :any, big_sur: "2ffac4bed71ad59f04e9d2c124d9cc1f46be04b228aed0636278bec4dcf10380"
|
|
sha256 cellar: :any, catalina: "f849d254d724d242cd41d0338ab7e7da9e04bce1a2dab4a2f3147a867ede36c4"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "b41cc4ad29e482719f7e9bb900ffc01cb54200408c8a9f7c59f28a83dc96939d"
|
|
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"
|
|
|
|
uses_from_macos "zlib"
|
|
|
|
resource "stb_vorbis" do
|
|
url "https://raw.githubusercontent.com/nothings/stb/1ee679ca2ef753a528db5ba6801e1067b40481b8/stb_vorbis.c"
|
|
sha256 "4c7cb2ff1f7011e9d67950446b7eb9ca044f2e464d76bfbb0b84dd2e23e65636"
|
|
version "1.22"
|
|
end
|
|
|
|
resource "tremor" do
|
|
url "https://gitlab.xiph.org/xiph/tremor.git",
|
|
revision: "7c30a66346199f3f09017a09567c6c8a3a0eedc8"
|
|
end
|
|
|
|
def install
|
|
resource("stb_vorbis").stage do
|
|
buildpath.install "stb_vorbis.c"
|
|
end
|
|
|
|
resource("tremor").stage do
|
|
system "./autogen.sh", "--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"
|
|
if OS.linux?
|
|
# Fixes: reminiscence: error while loading shared libraries: libvorbisidec.so.1
|
|
ENV.append "LDFLAGS", "-Wl,-rpath=#{libexec}/lib"
|
|
end
|
|
|
|
system "make"
|
|
bin.install "rs" => "reminiscence"
|
|
end
|
|
|
|
test do
|
|
system bin/"reminiscence", "--help"
|
|
end
|
|
end
|