mediaconch 15.11 (new formula)

based on the similar media-info formula (which installs mediainfo)

Closes Homebrew/homebrew#46675.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Dave Rice 2015-12-04 14:43:16 -05:00 committed by Mike McQuaid
parent 36accda8b3
commit 9b52f2b779

38
Formula/mediaconch.rb Normal file
View file

@ -0,0 +1,38 @@
class Mediaconch < Formula
desc "Conformance checker and technical metadata reporter"
homepage "https://mediaarea.net/MediaConch"
url "https://mediaarea.net/download/binary/mediaconch/15.11/MediaConch_CLI_15.11_GNU_FromSource.tar.bz2"
version "15.11"
sha256 "06f76ac63a41eb5b7e2c31fd16e450a2d7ae93db832710497d140c1b2c47bf82"
depends_on "pkg-config" => :build
# 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",
"--prefix=#{prefix}"]
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