aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-22 20:25:35 -0700
committerMax Howell2009-09-25 19:22:02 +0100
commit177bd8f4a8ae32d13e254af344de99b1a8cff03f (patch)
treeb38f0edb01f2d124eff51e4ffadad2058fd7641b /Library
parentb7bdb339b587cd86bad5273df563894e5c0dda67 (diff)
downloadhomebrew-177bd8f4a8ae32d13e254af344de99b1a8cff03f.tar.bz2
Formula for Omega (roguelike)
The class roguelike game.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/omega.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/omega.rb b/Library/Formula/omega.rb
new file mode 100644
index 000000000..4af22a3d2
--- /dev/null
+++ b/Library/Formula/omega.rb
@@ -0,0 +1,33 @@
+require 'brewkit'
+
+class Omega <Formula
+ @url='http://www.alcyone.com/binaries/omega/omega-0.80.2-src.tar.gz'
+ @homepage='http://www.alcyone.com/max/projects/omega/'
+ @md5='6d65ec9e0cc87ccf89ab491533ec4b77'
+ @version='0.80.2'
+
+ def install
+ # 'make install' is weird, so we do it ourselves
+
+ omega_libexec = libexec + "omega"
+ omega_libexec.mkpath
+
+ # Set up our target folders
+ inreplace "defs.h", "#define OMEGALIB \"./omegalib/\"", "#define OMEGALIB \"#{omega_libexec}/\""
+
+ # Don't alias CC this way; also, don't need that ncurses include path
+ inreplace "Makefile", "CC = gcc -I/usr/include/ncurses", ""
+
+ # Set the system type in CFLAGS, not in makefile
+ inreplace "Makefile", "CFLAGS = -DUNIX -DSYSV -O", ""
+ ENV['CFLAGS'] = ENV['CFLAGS'] + " -DUNIX -DSYSV"
+
+ # Remove an obsolete flag
+ inreplace "Makefile", "LDFLAGS = -s", ""
+
+ system "make"
+
+ bin.install "omega"
+ omega_libexec.install Dir['omegalib/*']
+ end
+end