summaryrefslogtreecommitdiff
path: root/homebrew/supertux/.beer
blob: bb63f1ae76c9f24d97059e4e49a206756320568a (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
    "name": "Supertux",
    "description": "Classic 2D jump",
    "url": "https://github.com/SuperTux/supertux/releases/download/v0.5.1/SuperTux-v0.5.1-Source.tar.gz",
    "mirror": null,
    "homepage": "https://www.supertux.org/",
    "depends": [
        {
            "depend": "boost",
            "build-depend": true
        },
        {
            "depend": "cmake",
            "build-depend": true
        },
        {
            "depend": "pkg-config",
            "build-depend": true
        },
        {
            "depend": "glew",
            "build-depend": false
        },
        {
            "depend": "libogg",
            "build-depend": false
        },
        {
            "depend": "libvorbis",
            "build-depend": false
        },
        {
            "depend": "sdl2",
            "build-depend": false
        },
        {
            "depend": "sdl2_image",
            "build-depend": false
        },
        {
            "depend": "sdl2_mixer",
            "build-depend": false
        }
    ],
    "resource": [],
    "conflicts": [],
    "patches": [
        {
            "url": "https://github.com/SuperTux/supertux/commit/47a353e2981161e2da12492822fe88d797af2fec.diff?full_index=1",
            "strip": "1"
        },
        {
            "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/834e41a/supertux/squirrel_xcode9.patch",
            "strip": "1"
        }
    ],
    "install": [
        "ENV.cxx11",
        "args = std_cmake_args",
        "args << \"-DINSTALL_SUBDIR_BIN=bin\"",
        "args << \"-DINSTALL_SUBDIR_SHARE=share/supertux\"",
        "args << \"-DPNG_PNG_INCLUDE_DIR=#{Formula[\"libpng\"].opt_include}\"",
        "system \"cmake\", \".\", *args",
        "system \"make\", \"install\"",
        "(share/\"appdata\").rmtree",
        "(share/\"applications\").rmtree",
        "(share/\"pixmaps\").rmtree",
        "(prefix/\"MacOS\").rmtree"
    ],
    "version": "0.5.1",
    "file": "supertux.rb"
}