summaryrefslogtreecommitdiff
path: root/homebrew/openttd/.beer
blob: d5782b4dc87d44d89a2306be3409c5601a761cac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
    "name": "Openttd",
    "description": "Simulation game based upon Transport Tycoon Deluxe",
    "url": "https://proxy.binaries.openttd.org/openttd-releases/1.9.1/openttd-1.9.1-source.tar.xz",
    "mirror": null,
    "homepage": "https://www.openttd.org/",
    "depends": [
        {
            "depend": "pkg-config",
            "build-depend": true
        },
        {
            "depend": "lzo",
            "build-depend": false
        },
        {
            "depend": "xz",
            "build-depend": false
        }
    ],
    "resource": [
        {
            "name": "opengfx",
            "url": "https://binaries.openttd.org/extra/opengfx/0.5.5/opengfx-0.5.5-all.zip"
        },
        {
            "name": "opensfx",
            "url": "https://binaries.openttd.org/extra/opensfx/0.2.3/opensfx-0.2.3-all.zip"
        },
        {
            "name": "openmsx",
            "url": "https://binaries.openttd.org/extra/openmsx/0.3.1/openmsx-0.3.1-all.zip"
        }
    ],
    "conflicts": [],
    "patches": [],
    "install": [
        "system \"./configure\", \"--prefix-dir=#{prefix}\"",
        "system \"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\""
    ],
    "version": "1.9.1",
    "file": "openttd.rb"
}