diff options
| author | Ian McAlpine | 2014-05-02 21:15:14 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-02 19:48:34 -0700 |
| commit | b0305852ec287fd998ea8a0bf95e6c59c99ac00c (patch) | |
| tree | 5587a14e8817338852142d7a48c4d7308193e015 /Library/Formula/hercules.rb | |
| parent | 71d3202e3f579eb879c07e73bf0279b15b962d8a (diff) | |
| download | homebrew-b0305852ec287fd998ea8a0bf95e6c59c99ac00c.tar.bz2 | |
hercules --HEAD
Closes #28922.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/hercules.rb')
| -rw-r--r-- | Library/Formula/hercules.rb | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/Library/Formula/hercules.rb b/Library/Formula/hercules.rb index 6de76c9c8..d9d5c4e50 100644 --- a/Library/Formula/hercules.rb +++ b/Library/Formula/hercules.rb @@ -7,12 +7,36 @@ class Hercules < Formula skip_clean :la + head do + url 'https://github.com/hercules-390/hyperion.git' + depends_on :autoconf + depends_on :automake + depends_on :libtool + end + def install - # Since Homebrew optimizes for us, tell Hercules not to. - # (It gets it wrong anyway.) - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--enable-optimization=no" + if build.head? + ENV.append 'CFLAGS', '-D_FORTIFY_SOURCE=0' if MacOS.version >= :maverick + + # bundled autoconf.sh omits --add-missing + system "aclocal -I m4 -I autoconf" + system "autoheader" + system "automake --add-missing" + system "autoconf" + + # IPv6 doesn't build on OSX + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--disable-ipv6", + "--enable-optimization=no" + else + # Since Homebrew optimizes for us, tell Hercules not to. + # (It gets it wrong anyway.) + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--enable-optimization=no" + end + system "make" system "make install" end |
