homebrew-core/Formula/crossroads.rb
Julien Ammous e9f5bebf92 crossroads 1.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-05-26 21:18:56 -07:00

33 lines
817 B
Ruby

require 'formula'
class Crossroads < Formula
homepage 'http://www.crossroads.io/'
url 'http://download.crossroads.io/libxs-1.1.0.tar.gz'
md5 '04147c17285e60bc1bb0b9521d3d9aab'
head 'https://github.com/crossroads-io/libxs.git'
fails_with :llvm do
build 2326
cause "Compiling with LLVM gives a segfault while linking."
end
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