Homebrew Formula for Dopewars 1.5.12
require 'formula' | |
class Dopewars < Formula | |
homepage 'http://dopewars.sourceforge.net/' | |
url 'http://downloads.sourceforge.net/project/dopewars/dopewars/1.5.12/dopewars-1.5.12.tar.gz' | |
sha1 'ad46a38e225680e591b078eeec563d47b96684bc' | |
depends_on 'gettext' => :build | |
depends_on 'glib' => :build | |
depends_on 'gtk+' => :build | |
depends_on 'libiconv' => :build | |
depends_on 'ncurses' => :build | |
depends_on 'pkg-config' => :build | |
depends_on 'sdl' => :build | |
def install | |
system "./configure", "--disable-dependency-tracking", | |
"--prefix=#{prefix}", | |
"--with-gtk-prefix=#{Formula.factory('gtk+').opt_prefix}", | |
"--with-glib-prefix=#{Formula.factory('glib').opt_prefix}", | |
"--with-sdl-prefix=#{Formula.factory('sdl').opt_prefix}", | |
"--with-libiconv-prefix=#{Formula.factory('libiconv').opt_prefix}/include", | |
"--with-included-gettext", | |
"--without-esd", | |
"--without-sdl", | |
"--enable-gui-client", | |
"--enable-plugins", | |
"--enable-networking", | |
"--disable-gtktest", | |
"--disable-glibtest", | |
"--disable-sdltest", | |
"--disable-nls" | |
system "make" | |
system "make", "install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
atsjj commentedSep 5, 2013
This compiles...
The tests are disabled, because Homebrew doesn't install a lot of the expected scripts. Also, language support is disabled, because the make process can't seem to find libiconv, even though I'm giving it explicitly. I'd like to get this stuff to work without it feeling so fragile, however this gets the job done for now.