2010-09-07 14:01:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libdv < Formula
|
2010-09-07 14:01:49 +00:00
|
|
|
homepage 'http://libdv.sourceforge.net'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/libdv/libdv-1.0.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2e5ba0e95f665d60e72cbebcf1c4989e0d6c92c8'
|
2010-09-07 14:01:49 +00:00
|
|
|
|
2014-07-03 19:34:32 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-20 09:26:50 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "52e46dd26669bd9b226bfb774eac76a4f3cab442" => :yosemite
|
|
|
|
sha1 "035268b04e85f298530c3791b272e124fc62fa89" => :mavericks
|
|
|
|
sha1 "cc99e4e39bd24188d03b841eb24a39d31574b83a" => :mountain_lion
|
2014-07-03 19:34:32 +00:00
|
|
|
end
|
|
|
|
|
2010-09-07 14:01:49 +00:00
|
|
|
depends_on 'popt'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# This fixes an undefined symbol error on compile.
|
|
|
|
# See the port file for libdv. http://libdv.darwinports.com/
|
2012-01-04 06:05:05 +00:00
|
|
|
# This flag is the preferred method over what macports uses.
|
2010-09-07 14:01:49 +00:00
|
|
|
# See the apple docs: http://cl.ly/2HeF bottom of the "Finding Imported Symbols" section
|
|
|
|
ENV.append "LDFLAGS", "-undefined dynamic_lookup"
|
|
|
|
|
2013-01-29 05:24:22 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2010-09-07 14:01:49 +00:00
|
|
|
"--disable-gtktest",
|
|
|
|
"--disable-gtk",
|
|
|
|
"--disable-asm",
|
|
|
|
"--disable-sdltest"
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|