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
|
{
"name": "AmplMp",
"description": "The AMPL modeling language solver library",
"url": "https://github.com/ampl/mp/archive/3.1.0.tar.gz",
"mirror": null,
"homepage": "https://www.ampl.com/",
"depends": [
{
"depend": "cmake",
"build-depend": true
}
],
"resource": [
{
"name": "miniampl",
"url": "https://github.com/dpo/miniampl/archive/v1.0.tar.gz"
}
],
"conflicts": [],
"patches": [],
"install": [
"system \"cmake\", \".\", *std_cmake_args, \"-DBUILD_SHARED_LIBS=True\"",
"system \"make\", \"all\"",
"MachO::Tools.change_install_name(\"bin/libasl.dylib\", \"@rpath/libmp.3.dylib\",",
"\"#{opt_lib}/libmp.dylib\")",
"system \"make\", \"install\"",
"mkdir_p libexec/\"bin\"",
"mv Dir[bin/\"*.dll\"], libexec/\"bin\"",
"%w[errchk.h jac2dim.h obj_adj.h].each { |h| cp \"src/asl/solvers/#{h}\", include/\"asl\" }",
"resource(\"miniampl\").stage do",
"(pkgshare/\"example\").install \"src/miniampl.c\", Dir[\"examples/wb.*\"]"
],
"version": "3.1.0",
"file": "ampl-mp.rb"
}
|