blob: 6cd247cd9ffa3c976a4ab4edbda35e4cea6c6a96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  | 
require 'formula'
class Crossroads < Formula
  homepage 'http://www.crossroads.io/'
  url 'http://download.crossroads.io/libxs-1.2.0.tar.gz'
  md5 'aac1264bb0d03704bd2126419b981fd5'
  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
  |