2014-05-23 06:35:15 +00:00
|
|
|
require "formula"
|
2010-05-27 04:56:53 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class MediaInfo < Formula
|
2014-05-23 06:35:15 +00:00
|
|
|
homepage "https://mediaarea.net/"
|
|
|
|
url "https://mediaarea.net/download/binary/mediainfo/0.7.69/MediaInfo_CLI_0.7.69_GNU_FromSource.tar.bz2"
|
|
|
|
version "0.7.69"
|
|
|
|
sha1 "79227ec20928cc4fa82722b54a44671b03b833d9"
|
2014-03-25 12:14:48 +00:00
|
|
|
|
2014-05-23 06:35:15 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2013-06-09 00:08:55 +00:00
|
|
|
# fails to build against Leopard's older libcurl
|
2014-05-23 06:35:15 +00:00
|
|
|
depends_on "curl" if MacOS.version < :snow_leopard
|
2010-05-27 04:56:53 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-23 06:35:15 +00:00
|
|
|
cd "ZenLib/Project/GNU/Library" do
|
2012-02-21 06:04:21 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
end
|
|
|
|
|
|
|
|
cd "MediaInfoLib/Project/GNU/Library" do
|
|
|
|
args = ["--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2012-03-02 16:42:53 +00:00
|
|
|
"--with-libcurl",
|
2012-02-21 06:04:21 +00:00
|
|
|
"--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
|
2010-05-27 04:56:53 +00:00
|
|
|
end
|
|
|
|
end
|