summaryrefslogtreecommitdiff
path: root/homebrew/wesnoth/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/wesnoth/.make.sh-auto')
-rw-r--r--homebrew/wesnoth/.make.sh-auto10
1 files changed, 10 insertions, 0 deletions
diff --git a/homebrew/wesnoth/.make.sh-auto b/homebrew/wesnoth/.make.sh-auto
new file mode 100644
index 000000000..ab239b105
--- /dev/null
+++ b/homebrew/wesnoth/.make.sh-auto
@@ -0,0 +1,10 @@
+pkg:setup
+mv "scons/gettext.py", "scons/gettext_tool.py"
+inreplace "SConstruct", ", \"gettext\",", ", \"gettext_tool\","
+args = %W[prefix=#{prefix} docdir=#{doc} mandir=#{man} fifodir=#{var}/run/wesnothd gettextdir=#{Formula["gettext"].opt_prefix}]
+args << "OS_ENV=true"
+args << "install"
+args << "wesnoth"
+args << "wesnothd"
+args << "-j#{ENV.make_jobs}"
+scons *args