b335c7af82
Closes Homebrew/homebrew#26451. Signed-off-by: Brett Koonce <koonce@gmail.com>
35 lines
1.1 KiB
Ruby
35 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class MediaInfo < Formula
|
|
homepage 'http://mediainfo.sourceforge.net'
|
|
url 'http://mediaarea.net/download/binary/mediainfo/0.7.66/MediaInfo_CLI_0.7.66_GNU_FromSource.tar.bz2'
|
|
version '0.7.66'
|
|
sha1 '05c6ba9d7b63be15a4acd441b7c4a0f2f99b0014'
|
|
|
|
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 "MediaInfo/Project/GNU/CLI" do
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|
|
end
|