summaryrefslogtreecommitdiff
path: root/homebrew/gribapi/.beer
blob: 941d83872583c479af0d0cfb9f6ca08ca798b4e3 (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": "GribApi",
    "description": "Encode and decode grib messages (editions 1 and 2)",
    "url": "https://deb.debian.org/debian/pool/main/g/grib-api/grib-api_1.27.0.orig.tar.xz",
    "mirror": null,
    "homepage": "https://software.ecmwf.int/wiki/display/GRIB/Home",
    "depends": [
        {
            "depend": "cmake",
            "build-depend": true
        },
        {
            "depend": "gcc",
            "build-depend": false
        },
        {
            "depend": "jasper",
            "build-depend": false
        },
        {
            "depend": "libpng",
            "build-depend": false
        },
        {
            "depend": "numpy",
            "build-depend": false
        }
    ],
    "resource": [],
    "conflicts": [
        {
            "conflict": "eccodes",
            "reason": null
        }
    ],
    "patches": [],
    "install": [
        "inreplace \"src/grib_jasper_encoding.c\", \"image.inmem_    = 1;\", \"\"",
        "inreplace \"CMakeLists.txt\", \"find_package( OpenJPEG )\", \"\"",
        "mkdir \"build\" do",
        "system \"cmake\", \"..\", *std_cmake_args, \"-DENABLE_NETCDF=OFF\",",
        "\"-DENABLE_PNG=ON\",",
        "\"-DPNG_PNG_INCLUDE_DIR=#{Formula[\"libpng\"].opt_include}\"",
        "system \"make\", \"install\""
    ],
    "version": "1.27.0",
    "file": "grib-api.rb"
}