2010-03-09 17:00:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Schroedinger < Formula
|
2010-03-09 17:00:43 +00:00
|
|
|
homepage 'http://diracvideo.org/'
|
2012-04-21 15:54:45 +00:00
|
|
|
url 'http://diracvideo.org/download/schroedinger/schroedinger-1.0.11.tar.gz'
|
|
|
|
md5 'da6af08e564ca1157348fb8d92efc891'
|
|
|
|
|
|
|
|
head 'git://diracvideo.org/git/schroedinger.git'
|
2010-03-09 17:00:43 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-03-09 17:00:43 +00:00
|
|
|
depends_on 'orc'
|
|
|
|
|
2012-02-29 01:44:13 +00:00
|
|
|
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2010-03-09 17:00:43 +00:00
|
|
|
def install
|
2010-07-09 19:40:41 +00:00
|
|
|
system "autoreconf -i -f" if ARGV.build_head?
|
2012-04-21 15:54:45 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
|
|
|
|
# Disable compiling the test suite.
|
|
|
|
# The test suite is known not to build against Orc 0.4.16 in Schroedinger 1.0.11.
|
|
|
|
# A fix is in upstream, so test when pulling 1.0.12 if this is still needed. See:
|
|
|
|
# http://www.mail-archive.com/schrodinger-devel@lists.sourceforge.net/msg00415.html
|
|
|
|
|
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
s.change_make_var! "SUBDIRS", "schroedinger doc tools"
|
|
|
|
s.change_make_var! "DIST_SUBDIRS", "schroedinger doc tools"
|
|
|
|
end
|
|
|
|
|
2010-03-09 17:00:43 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|