Last active
August 29, 2015 14:12
-
-
Save cbeck88/49b0de6ab31fe5f4260a to your computer and use it in GitHub Desktop.
wesnoth 1.12, no boost filesystem
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/' | |
head 'https://github.com/wesnoth/wesnoth.git' | |
url 'https://downloads.sourceforge.net/project/wesnoth/wesnoth-1.12/wesnoth-1.12/wesnoth-1.12.tar.bz2' | |
sha1 'eb273d01ced5e2dbdbd17c533586d03bd7646e43' | |
option "with-ccache", "Speeds recompilation, convenient for beta testers" | |
option "with-debug", "Build with debugging symbols" | |
depends_on 'scons' => :build | |
depends_on 'gettext' | |
depends_on 'fribidi' | |
depends_on 'boost' | |
depends_on 'libpng' | |
depends_on 'fontconfig' | |
depends_on 'cairo' | |
depends_on 'pango' | |
if OS.linux? | |
# On linux, x11 driver is needed by the windowing and clipboard code | |
depends_on 'sdl' => 'with-x11' | |
else | |
depends_on 'sdl' | |
end | |
depends_on 'sdl_image' # Must have png support | |
depends_on 'sdl_mixer' => 'with-libvorbis' # The music is in .ogg format | |
depends_on 'sdl_net' | |
depends_on 'sdl_ttf' | |
depends_on 'ccache' => :optional | |
def install | |
args = %W[prefix=#{prefix} docdir=#{doc} mandir=#{man} fifodir=#{var}/run/wesnothd gettextdir=#{Formula["gettext"].opt_prefix}] | |
args << "OS_ENV=true" | |
args << "boostfilesystem=false" | |
args << "install" | |
args << "wesnoth" | |
args << "wesnothd" | |
args << "-j#{ENV.make_jobs}" | |
args << "ccache=true" if build.with? "ccache" | |
args << "build=debug" if build.with? "debug" | |
scons *args | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment