2012-03-19 17:35:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Crossroads < Formula
|
|
|
|
homepage 'http://www.crossroads.io/'
|
2012-04-10 09:58:36 +00:00
|
|
|
url 'http://download.crossroads.io/libxs-1.0.1.tar.gz'
|
2012-03-19 17:35:17 +00:00
|
|
|
md5 '915aaf168f4a47d8ccf6d03b33845038'
|
|
|
|
head 'https://github.com/crossroads-io/libxs.git'
|
|
|
|
|
2012-04-01 17:48:34 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause "Compiling with LLVM gives a segfault while linking."
|
|
|
|
end
|
2012-03-19 17:35:17 +00:00
|
|
|
|
|
|
|
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
|
|
|
def options
|
|
|
|
[['--with-pgm', 'Build with PGM extension']]
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./autogen.sh" if ARGV.build_head?
|
|
|
|
|
|
|
|
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
|
|
|
|
args << "--with-pgm" if ARGV.include? '--with-pgm'
|
|
|
|
system "./configure", *args
|
|
|
|
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|