2010-05-27 04:56:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class MediaInfo <Formula
|
2010-09-09 21:25:57 +00:00
|
|
|
url 'http://downloads.sourceforge.net/sourceforge/mediainfo/MediaInfo_CLI_0.7.8_GNU_FromSource.tar.bz2'
|
2010-05-27 04:56:53 +00:00
|
|
|
homepage 'http://mediainfo.sourceforge.net'
|
|
|
|
version '0.7.8'
|
|
|
|
md5 '9df4cf265802bae929450954f15a46d1'
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-05-27 04:56:53 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
root_dir = Dir.pwd
|
|
|
|
|
|
|
|
Dir.chdir root_dir + '/ZenLib/Project/GNU/Library'
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
|
|
|
|
Dir.chdir root_dir + "/MediaInfoLib/Project/GNU/Library"
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
|
|
|
|
Dir.chdir root_dir + "/MediaInfo/Project/GNU/CLI"
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|