summaryrefslogtreecommitdiff
path: root/homebrew/minetest/.beer
blob: 518125f37c18c0064ef08cf30f825a4b86e21154 (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
{
    "name": "Minetest",
    "description": "Free, open source voxel game engine and game",
    "url": "https://github.com/minetest/minetest/archive/5.0.1.tar.gz",
    "mirror": null,
    "homepage": "https://www.minetest.net/",
    "depends": [
        {
            "depend": "cmake",
            "build-depend": true
        },
        {
            "depend": "freetype",
            "build-depend": false
        },
        {
            "depend": "gettext",
            "build-depend": false
        },
        {
            "depend": "irrlicht",
            "build-depend": false
        },
        {
            "depend": "jpeg",
            "build-depend": false
        },
        {
            "depend": "libogg",
            "build-depend": false
        },
        {
            "depend": "libvorbis",
            "build-depend": false
        },
        {
            "depend": "luajit",
            "build-depend": false
        }
    ],
    "resource": [
        {
            "name": "minetest_game",
            "url": "https://github.com/minetest/minetest_game/archive/5.0.1.tar.gz"
        },
        {
            "name": "minetest_game",
            "url": "https://github.com/minetest/minetest_game.git"
        }
    ],
    "conflicts": [],
    "patches": [],
    "install": [
        "(buildpath/\"games/minetest_game\").install resource(\"minetest_game\")",
        "args = std_cmake_args - %w[-DCMAKE_BUILD_TYPE=None]",
        "args << \"-DCMAKE_BUILD_TYPE=Release\" << \"-DBUILD_CLIENT=1\" << \"-DBUILD_SERVER=0\"",
        "args << \"-DENABLE_FREETYPE=1\" << \"-DCMAKE_EXE_LINKER_FLAGS='-L#{Formula[\"freetype\"].opt_lib}'\"",
        "args << \"-DENABLE_GETTEXT=1\" << \"-DCUSTOM_GETTEXT_PATH=#{Formula[\"gettext\"].opt_prefix}\"",
        "system \"cmake\", \".\", *args",
        "system \"make\", \"package\"",
        "system \"unzip\", \"minetest-*-osx.zip\"",
        "prefix.install \"minetest.app\""
    ],
    "version": "5.0.1",
    "file": "minetest.rb"
}