49 lines
2.0 KiB
Ruby
49 lines
2.0 KiB
Ruby
class Smpeg2 < Formula
|
|
desc "SDL MPEG Player Library"
|
|
homepage "https://icculus.org/smpeg/"
|
|
url "svn://svn.icculus.org/smpeg/tags/release_2_0_0/", revision: "408"
|
|
head "svn://svn.icculus.org/smpeg/trunk"
|
|
|
|
livecheck do
|
|
url "https://svn.icculus.org/smpeg/tags/"
|
|
regex(%r{href=.*?release[._-]v?(2(?:[._]\d+)+)/}i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "bf514f604adc800528192749aff14cf262f959b0c398174cb045fdea206b06ba"
|
|
sha256 cellar: :any, big_sur: "816b0441d6d10986dea2c3b55f7889a9a72783c2fc55e92520fe9366b53a769c"
|
|
sha256 cellar: :any, catalina: "97d4ca204752184752822f6c4bbbff2e044d110917f6a0ce30c3c472d6cb622c"
|
|
sha256 cellar: :any, mojave: "4ecef89d7ee22d5d23703a5ac29fb6b4fc0cd025e249219a194ca325d79dfa85"
|
|
sha256 cellar: :any, high_sierra: "927cb1d5dd58481afd16e893868a0794b42d56588e7fe9d51b881812e2f26eb6"
|
|
sha256 cellar: :any, sierra: "05ea6a84c6ff07c3c88e89f0ecd153c5cd92866d3edb8cc4b4dfd06f445971b7"
|
|
sha256 cellar: :any, el_capitan: "52aba7403eee04f66c9184a741354b747dfcd0994fa3bd7de9058b65a30fcf19"
|
|
sha256 cellar: :any, yosemite: "6031bf704fd0508bb90322dbe77f62580708e3fe77362e3dea6b0691360b686b"
|
|
sha256 cellar: :any, mavericks: "fa5760a0f8ff18f596b0044a0da7562a361904f2520a7406c3681ace8a705950"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "sdl2"
|
|
|
|
def install
|
|
system "./autogen.sh"
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--with-sdl-prefix=#{Formula["sdl2"].opt_prefix}",
|
|
"--disable-dependency-tracking",
|
|
"--disable-debug",
|
|
"--disable-sdltest"
|
|
system "make"
|
|
system "make", "install"
|
|
|
|
# To avoid a possible conflict with smpeg 0.x
|
|
mv "#{bin}/plaympeg", "#{bin}/plaympeg2"
|
|
mv "#{man1}/plaympeg.1", "#{man1}/plaympeg2.1"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/plaympeg2", "--version"
|
|
end
|
|
end
|