homebrew-core/Formula/media-info.rb

36 lines
1.1 KiB
Ruby
Raw Normal View History

require "formula"
2011-03-10 05:11:03 +00:00
class MediaInfo < Formula
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"
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",
2012-03-02 16:42:53 +00:00
"--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