forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bali-phy.rb
31 lines (27 loc) · 1.01 KB
/
bali-phy.rb
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
require 'formula'
class BaliPhy < Formula
homepage 'http://www.bali-phy.org/'
url 'http://www.bali-phy.org/bali-phy-2.2.0.tar.gz'
sha1 '595dfdd70a2478d2cad518703877d31d61d247eb'
depends_on 'pkg-config' => :build
depends_on 'cairo'
# This package requires C++11, through either gcc-4.8 or through
# clang 3.3svn in Xcode 5 or newer.
# Clang 3.4.0 works with libstdc++ from gcc-4.8.
# On Mavericks, the Xcode defaults (libc++) work.
fails_with :clang do
build 425
cause 'This formula requires C++11 support available in clang build 500 or newer.'
end
def install
mkdir 'macbuild' do
system "../configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-cairo",
# Necessary for clang 5.0, which has a
# default depth of 128.
"CXXFLAGS=-ftemplate-depth=256"
system "make install"
end
end
end