homebrew-core/Formula/net-nuclear.rb

41 lines
1 KiB
Ruby
Raw Normal View History

2010-03-26 07:03:05 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class NetNuclearSoundsAndGraphics < Formula
2010-03-26 07:03:05 +00:00
# Source tarball doesn't include sfx or gfx.
# Get them from a v4 binary build.
url 'http://studiostok.se/files/netnuclear4-linux.tar.gz'
version '4'
md5 '2dbbfe9083275aa170cb96d48237cfe4'
end
2011-03-10 05:11:03 +00:00
class NetNuclear < Formula
2012-02-11 23:44:28 +00:00
homepage 'http://studiostok.se/?page=netnuclear'
2010-03-26 07:03:05 +00:00
url 'http://studiostok.se/files/netnuclear4-source.rar'
version '4'
md5 '061df954d0632f1cbc158dc0002e4b6c'
depends_on 'sdl'
depends_on 'sdl_mixer'
depends_on 'sdl_net'
def install
inreplace 'Makefile' do |s|
s.remove_make_var! 'CC'
2010-08-10 15:05:31 +00:00
s.change_make_var! 'CFLAGS', "#{ENV.cflags} -I#{HOMEBREW_PREFIX}/include/SDL"
2010-03-26 07:03:05 +00:00
s.change_make_var! 'LIBS', "-lSDLmain -lSDL -lSDL_mixer -lSDL_net -framework Cocoa"
end
system 'make'
libexec.install 'nuclear'
d = libexec
2012-02-11 23:44:28 +00:00
NetNuclearSoundsAndGraphics.new.brew { d.install 'sfx','gfx' }
2010-03-26 07:03:05 +00:00
2012-02-11 23:44:28 +00:00
(bin+'nuclear').write <<-END.undent
#!/bin/bash
"#{libexec}/nuclear" "$@"
END
2010-03-26 07:03:05 +00:00
end
end