require 'formula' class MediaInfo < Formula homepage 'http://mediainfo.sourceforge.net' url 'http://downloads.sourceforge.net/mediainfo/MediaInfo_CLI_0.7.62_GNU_FromSource.tar.bz2' version '0.7.62' sha1 '6b6cdd93dd526e5e70e1d556055a117a8cb8a9ca' depends_on 'pkg-config' => :build 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