2015-12-04 19:43:16 +00:00
|
|
|
class Mediaconch < Formula
|
|
|
|
desc "Conformance checker and technical metadata reporter"
|
|
|
|
homepage "https://mediaarea.net/MediaConch"
|
2015-12-31 16:52:38 +00:00
|
|
|
url "https://mediaarea.net/download/binary/mediaconch/15.12/MediaConch_CLI_15.12hotfix1_GNU_FromSource.tar.bz2"
|
|
|
|
version "15.12"
|
|
|
|
sha256 "4899d43c097c552b2f970da6362407f002c61f93b11e8be3cf79b29c4733fd06"
|
2015-12-04 19:43:16 +00:00
|
|
|
|
2015-12-04 20:48:44 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2015-12-08 23:56:28 +00:00
|
|
|
sha256 "6952797738c558cc457ce26155de8c697e542967eae0a705df92769574e96848" => :el_capitan
|
|
|
|
sha256 "b7bc97e760479f97f35c54ff9bef9d0f08ebfb7286c3bb7684d99c26a182d58e" => :yosemite
|
|
|
|
sha256 "ec3441854b7c60d59a1c6df057da0ba6853c3e1bf320199f6ab5414aa96c32c6" => :mavericks
|
2015-12-04 20:48:44 +00:00
|
|
|
end
|
|
|
|
|
2015-12-04 19:43:16 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2015-12-31 16:52:38 +00:00
|
|
|
depends_on "jansson" => :build
|
|
|
|
depends_on "libevent" => :build
|
|
|
|
depends_on "sqlite" => :build
|
2015-12-04 19:43:16 +00:00
|
|
|
# fails to build against Leopard's older libcurl
|
|
|
|
depends_on "curl" if MacOS.version < :snow_leopard
|
|
|
|
|
|
|
|
def install
|
|
|
|
cd "ZenLib/Project/GNU/Library" do
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
end
|
|
|
|
|
|
|
|
cd "MediaInfoLib/Project/GNU/Library" do
|
|
|
|
args = ["--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--with-libcurl",
|
2015-12-08 23:25:46 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
# mediaconch installs libs/headers at the same paths as mediainfo
|
|
|
|
"--libdir=#{lib}/mediaconch",
|
|
|
|
"--includedir=#{include}/mediaconch"]
|
2015-12-04 19:43:16 +00:00
|
|
|
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
|