60 lines
2 KiB
Ruby
60 lines
2 KiB
Ruby
class Mediaconch < Formula
|
|
desc "Conformance checker and technical metadata reporter"
|
|
homepage "https://mediaarea.net/MediaConch"
|
|
url "https://mediaarea.net/download/binary/mediaconch/16.12/MediaConch_CLI_16.12_GNU_FromSource.tar.bz2"
|
|
version "16.12"
|
|
sha256 "4da0bf62e0cfc0ac33d8172595af40c4dc53256ac37a291c3910ad3b80503210"
|
|
revision 1
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "19a5b87fc2fa370cdac172aaed3e1501ad0f42849194fd75da23745ac800c2da" => :sierra
|
|
sha256 "fa1242496934c74499a4f071d741894160ee3fb41fb5585962230275b26fbfc8" => :el_capitan
|
|
sha256 "2289ee1b8d27a7b5f58f6f423c1602c70e906ea97d42bf8e9a8f89e5f9a299dd" => :yosemite
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "jansson"
|
|
depends_on "libevent"
|
|
depends_on "sqlite"
|
|
# fails to build against Leopard's older libcurl
|
|
depends_on "curl" if MacOS.version < :snow_leopard
|
|
|
|
def install
|
|
cd "ZenLib/Project/GNU/Library" do
|
|
args = ["--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--enable-shared",
|
|
"--enable-static",
|
|
"--prefix=#{prefix}",
|
|
# mediaconch installs libs/headers at the same paths as mediainfo
|
|
"--libdir=#{lib}/mediaconch",
|
|
"--includedir=#{include}/mediaconch"]
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
|
|
cd "MediaInfoLib/Project/GNU/Library" do
|
|
args = ["--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--enable-static",
|
|
"--enable-shared",
|
|
"--with-libcurl",
|
|
"--prefix=#{prefix}",
|
|
"--libdir=#{lib}/mediaconch",
|
|
"--includedir=#{include}/mediaconch"]
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
|
|
cd "MediaConch/Project/GNU/CLI" do
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
pipe_output("#{bin}/mediaconch", test_fixtures("test.mp3"))
|
|
end
|
|
end
|