summaryrefslogtreecommitdiff
path: root/homebrew/sundials/.beer
blob: 06f1aa54e326c044047941d8f973e2cbeeb3bdd9 (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
{
    "name": "Sundials",
    "description": "Nonlinear and differential/algebraic equations solver",
    "url": "https://computation.llnl.gov/projects/sundials/download/sundials-4.1.0.tar.gz",
    "mirror": null,
    "homepage": "https://computation.llnl.gov/casc/sundials/main.html",
    "depends": [
        {
            "depend": "cmake",
            "build-depend": true
        },
        {
            "depend": "gcc",
            "build-depend": false
        },
        {
            "depend": "open-mpi",
            "build-depend": false
        },
        {
            "depend": "suite-sparse",
            "build-depend": false
        },
        {
            "depend": "veclibfort",
            "build-depend": false
        }
    ],
    "resource": [],
    "conflicts": [],
    "patches": [],
    "install": [
        "blas = \"-L#{Formula[\"veclibfort\"].opt_lib} -lvecLibFort\"",
        "args = std_cmake_args + %W[",
        "-DCMAKE_C_COMPILER=#{ENV[\"CC\"]}",
        "-DBUILD_SHARED_LIBS=ON",
        "-DKLU_ENABLE=ON",
        "-DKLU_LIBRARY_DIR=#{Formula[\"suite-sparse\"].opt_lib}",
        "-DKLU_INCLUDE_DIR=#{Formula[\"suite-sparse\"].opt_include}",
        "-DLAPACK_ENABLE=ON",
        "-DLAPACK_LIBRARIES=#{blas};#{blas}",
        "-DMPI_ENABLE=ON",
        "]",
        "mkdir \"build\" do",
        "system \"cmake\", \"..\", *args",
        "system \"make\", \"install\""
    ],
    "version": "4.1.0",
    "file": "sundials.rb"
}