aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/crossroads.rb
blob: 02578e2ff53d3765fbdbae5d6ebcd494a4a720a3 (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
require 'formula'

class Crossroads < Formula
  homepage 'http://www.crossroads.io/'
  url 'http://download.crossroads.io/libxs-1.2.0.tar.gz'
  sha1 'd9633e6df56e3ed0c4f0e86d80ee0ae10c8a966a'

  head 'https://github.com/crossroads-io/libxs.git'

  option 'with-pgm', 'Build with PGM extension'

  depends_on :automake
  depends_on :libtool

  fails_with :llvm do
    build 2326
    cause "Compiling with LLVM gives a segfault while linking."
  end

  def install
    system "./autogen.sh" if build.head?

    args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
    args << "--with-pgm" if build.include? 'with-pgm'
    system "./configure", *args

    system "make"
    system "make install"
  end
end