Created
October 29, 2014 14:02
-
-
Save cbeck88/5f402e5d333cc43a778f to your computer and use it in GitHub Desktop.
fixup wesnoth homebrew script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Wesnoth < Formula | |
homepage 'http://www.wesnoth.org/' | |
url 'https://downloads.sourceforge.net/project/wesnoth/wesnoth-1.10/wesnoth-1.10.6/wesnoth-1.10.6.tar.bz2' | |
sha1 'c812a55a4544b894691f37ab95cc849d015a3041' | |
head 'https://github.com/cbeck88/wesnoth.git' | |
devel do | |
url 'https://downloads.sourceforge.net/project/wesnoth/wesnoth/wesnoth-1.11.7/wesnoth-1.11.7.tar.bz2' | |
sha1 'cbbf5b073896429da754634ee2c1e4fc69159e9d' | |
end | |
depends_on 'scons' => :build | |
depends_on 'gettext' | |
depends_on 'pango' | |
depends_on 'boost' | |
depends_on 'fontconfig' | |
# x11 driver is needed or the clipboard code doesn't work, images don't load | |
depends_on 'sdl' => 'with-x11-driver' | |
depends_on 'sdl_image' => 'with-x11-driver' | |
# The music is in .ogg format | |
depends_on 'sdl_mixer' => 'with-libvorbis' | |
depends_on 'sdl_net' | |
depends_on 'sdl_ttf' | |
depends_on 'ccache' | |
def install | |
system "scons", "install", "wesnoth", '-j 3', 'ccache=true', "prefix=#{prefix}", 'boostlibdir=/home/chris/.linuxbrew/lib' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment