diff options
| author | Dave Rice | 2011-12-28 01:10:45 -0500 |
|---|---|---|
| committer | Misty De Meo | 2012-01-05 21:16:20 -0600 |
| commit | f0afee31929520f992313d87fa8dbb1c12d0353c (patch) | |
| tree | c73b2093892f8d6a20b43b5bb5337e57f5841be4 /Library/Formula/media-info.rb | |
| parent | 21084b2a23bde474a42890d75819faa6cb786c3c (diff) | |
| download | homebrew-f0afee31929520f992313d87fa8dbb1c12d0353c.tar.bz2 | |
mediainfo: add option for --with-libcurl
Enables mediainfo to analyze files online with url input
Closes #9307.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula/media-info.rb')
| -rw-r--r-- | Library/Formula/media-info.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Library/Formula/media-info.rb b/Library/Formula/media-info.rb index f73bb5f8a..ee9bbdeab 100644 --- a/Library/Formula/media-info.rb +++ b/Library/Formula/media-info.rb @@ -1,10 +1,18 @@ require 'formula' +def libcurl? + ARGV.include? '--with-libcurl' +end + class MediaInfo < Formula url 'http://downloads.sourceforge.net/mediainfo/MediaInfo_CLI_0.7.52_GNU_FromSource.tar.bz2' homepage 'http://mediainfo.sourceforge.net' md5 '088e62c8f2992c776a881fd6813f150f' + def options + [["--with-libcurl", "Build with libcurl support."]] + end + depends_on 'pkg-config' => :build def install @@ -15,7 +23,11 @@ class MediaInfo < Formula system "make" Dir.chdir root_dir + "/MediaInfoLib/Project/GNU/Library" - system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" + args = ["--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}"] + args << "--with-libcurl" if libcurl? + system "./configure", *args system "make install" Dir.chdir root_dir + "/MediaInfo/Project/GNU/CLI" |
