Skip to content

Instantly share code, notes, and snippets.

@atsjj
Created September 5, 2013 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atsjj/6446639 to your computer and use it in GitHub Desktop.
Save atsjj/6446639 to your computer and use it in GitHub Desktop.
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
@atsjj
Copy link
Author

atsjj commented Sep 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment