Skip to content

Instantly share code, notes, and snippets.

@dx7
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dx7/9668763 to your computer and use it in GitHub Desktop.
Save dx7/9668763 to your computer and use it in GitHub Desktop.
require 'formula'
class MediaInfo < Formula
homepage 'http://mediainfo.sourceforge.net'
url 'http://mediaarea.net/download/binary/mediainfo/0.7.67/MediaInfo_CLI_0.7.67_GNU_FromSource.tar.bz2'
version '0.7.67'
# sha1 'e5bfc3af8d3a0995785f1963c78ff9a6505e9626'
sha1 'e4b939c7d04ba52be679bcfd577905b65f6c72c6'
head 'svn://svn.code.sf.net/p/mediainfo/code'
depends_on 'pkg-config' => :build
# fails to build against Leopard's older libcurl
depends_on 'curl' if MacOS.version < :snow_leopard
def install
cd 'MediaInfo_AllInclusive/trunk' if build.head?
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment