summaryrefslogtreecommitdiff
path: root/homebrew/simutrans/.make.sh-auto
blob: 307aca73d12fc5a7bcf67c7be3d5cf8a7ee90866 (plain)
1
2
3
4
5
6
7
8
9
10
11
pkg:setup
args = %w[BACKEND=sdl2 COLOUR_DEPTH=16 OSTYPE=mac ]
args << "AV_FOUNDATION=1" if MacOS.version >= :sierra
make *args
libexec.install "build/default/sim" => "simutrans"
libexec.install Dir["simutrans/*"]
bin.write_exec_script libexec/"simutrans"
libexec.install resource("pak64")
(libexec/"text").install resource("text")
make makeobj *args
bin.install "build/default/makeobj/makeobj"