summaryrefslogtreecommitdiff
path: root/homebrew/amplmp/.beer
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/amplmp/.beer')
-rw-r--r--homebrew/amplmp/.beer35
1 files changed, 35 insertions, 0 deletions
diff --git a/homebrew/amplmp/.beer b/homebrew/amplmp/.beer
new file mode 100644
index 000000000..7e00a1abf
--- /dev/null
+++ b/homebrew/amplmp/.beer
@@ -0,0 +1,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"
+} \ No newline at end of file