aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorScott Christopher2011-05-29 22:55:34 +0930
committerAdam Vandenberg2011-06-08 12:22:29 -0700
commitd461a4bad30182eae1cc07fd3a47594ef7c2f887 (patch)
tree33aad103ddcf5d76b29566511c518f31e0d9f1df /Library
parenta32089991acce0e5182ba8d1feb926532f03abcf (diff)
downloadhomebrew-d461a4bad30182eae1cc07fd3a47594ef7c2f887.tar.bz2
XMoto 0.5.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/xmoto.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/xmoto.rb b/Library/Formula/xmoto.rb
new file mode 100644
index 000000000..e07eebc1f
--- /dev/null
+++ b/Library/Formula/xmoto.rb
@@ -0,0 +1,23 @@
+require 'formula'
+
+class Xmoto < Formula
+ url 'http://download.tuxfamily.org/xmoto/xmoto/0.5.7/xmoto-0.5.7-src.tar.gz'
+ homepage 'http://xmoto.tuxfamily.org/'
+ md5 'c4b8477412445e114843b3b6163937f3'
+
+ depends_on 'gettext'
+ depends_on 'jpeg'
+ depends_on 'sdl'
+ depends_on 'sdl_mixer'
+ depends_on 'sdl_net'
+ depends_on 'sdl_ttf'
+ depends_on 'lua'
+ depends_on 'ode'
+
+ def install
+ ENV.append "CPPFLAGS", "-I#{include} -I/usr/X11/include"
+ ENV.append "LDFLAGS", "-framework OpenGL -framework Cocoa -L#{lib} -L/usr/X11/lib -lstdc++ -lSDLmain -lSDL -lSDL_mixer -lpng"
+ system "./configure", "--prefix=#{prefix}", "--with-internal-xdg=1"
+ system "make install"
+ end
+end