Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

abuse: build properly with superenv and OS X 10.8

Closes #18.
Closes #40.
  • Loading branch information...
commit b3925071ca698a368762c9d7549e84187cc34ffa 1 parent 46fb49c
Roger Que query authored adamv committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 abuse.rb
10 abuse.rb
View
@@ -6,8 +6,12 @@ class Abuse < Formula
head 'svn://svn.zoy.org/abuse/abuse/trunk'
sha1 '12fea968a1494338ad71c6ec24954f3eef56826a'
+ depends_on 'autoconf' => :build
+ depends_on 'automake' => :build
+ depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
depends_on 'sdl'
+ depends_on 'sdl_mixer'
depends_on 'libvorbis'
def startup_script; <<-EOS.undent
@@ -17,6 +21,9 @@ def startup_script; <<-EOS.undent
end
def install
+ # Hack to work with newer versions of automake
+ inreplace 'bootstrap', '11 10 9 8 7 6 5', '$(seq -s " " 5 99)'
+
# Add SDL.m4 to aclocal includes
inreplace 'bootstrap', 'aclocal${amvers} ${aclocalflags}',
'aclocal${amvers} ${aclocalflags} -I/usr/local/share/aclocal'
@@ -25,6 +32,9 @@ def install
inreplace 'src/net/fileman.cpp', 'ushort', 'unsigned short'
inreplace 'src/sdlport/setup.cpp', 'UInt8', 'uint8_t'
+ # Fix autotools obsoletion notice
+ inreplace 'configure.ac', 'AM_CONFIG_HEADER', 'AC_CONFIG_HEADERS'
+
# Re-enable OpenGL detection
inreplace 'configure.ac',
"#error\t/* Error so the compile fails on OSX */",
Please sign in to comment.
Something went wrong with that request. Please try again.