Skip to content

Instantly share code, notes, and snippets.

@cbeck88
Last active August 29, 2015 14:12
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 cbeck88/49b0de6ab31fe5f4260a to your computer and use it in GitHub Desktop.
Save cbeck88/49b0de6ab31fe5f4260a to your computer and use it in GitHub Desktop.
wesnoth 1.12, no boost filesystem
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