homebrew-core/Formula/mediaconch.rb
2018-03-20 20:56:47 +10:00

57 lines
1.9 KiB
Ruby

class Mediaconch < Formula
desc "Conformance checker and technical metadata reporter"
homepage "https://mediaarea.net/MediaConch"
url "https://mediaarea.net/download/binary/mediaconch/18.03/MediaConch_CLI_18.03_GNU_FromSource.tar.bz2"
version "18.03"
sha256 "6e296ff6f566519db07fe53b285235aedb00d7ce9839cd1972d3190005326941"
bottle do
cellar :any
sha256 "ae8a3d8eb50582b01321e07341480a1d3af28082369996b940da862d8311b3a5" => :high_sierra
sha256 "cbaabe7828ade90611fa78f57b12cecca377f22b903b367db78b1d12ef1ef0e9" => :sierra
sha256 "af2b85d84dd7a57a47197c7fc6245aa0f65aa49e7055525b6b09878cd3ce035e" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "jansson"
depends_on "libevent"
depends_on "sqlite"
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