diff options
| author | Scott Christopher | 2011-05-29 22:55:34 +0930 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-08 12:22:29 -0700 |
| commit | d461a4bad30182eae1cc07fd3a47594ef7c2f887 (patch) | |
| tree | 33aad103ddcf5d76b29566511c518f31e0d9f1df /Library | |
| parent | a32089991acce0e5182ba8d1feb926532f03abcf (diff) | |
| download | homebrew-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.rb | 23 |
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 |
