summaryrefslogtreecommitdiff
path: root/homebrew/openttd/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/openttd/.make.sh-auto')
-rw-r--r--homebrew/openttd/.make.sh-auto8
1 files changed, 8 insertions, 0 deletions
diff --git a/homebrew/openttd/.make.sh-auto b/homebrew/openttd/.make.sh-auto
new file mode 100644
index 000000000..53590e1ae
--- /dev/null
+++ b/homebrew/openttd/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+pkg:configure --prefix-dir=${PKG_TAPF}
+make bundle
+(buildpath/"bundle/OpenTTD.app/Contents/Resources/data/opengfx").install resource("opengfx")
+(buildpath/"bundle/OpenTTD.app/Contents/Resources/data/opensfx").install resource("opensfx")
+(buildpath/"bundle/OpenTTD.app/Contents/Resources/gm/openmsx").install resource("openmsx")
+prefix.install "bundle/OpenTTD.app"
+bin.write_exec_script "#{prefix}/OpenTTD.app/Contents/MacOS/openttd"