summaryrefslogtreecommitdiff
path: root/homebrew/nlopt/.beer
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/nlopt/.beer')
-rw-r--r--homebrew/nlopt/.beer44
1 files changed, 44 insertions, 0 deletions
diff --git a/homebrew/nlopt/.beer b/homebrew/nlopt/.beer
new file mode 100644
index 000000000..e182bc2e3
--- /dev/null
+++ b/homebrew/nlopt/.beer
@@ -0,0 +1,44 @@
+{
+ "name": "Nlopt",
+ "description": "Free/open-source library for nonlinear optimization",
+ "url": "https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2.tar.gz",
+ "mirror": null,
+ "homepage": "https://nlopt.readthedocs.io/",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "swig",
+ "build-depend": true
+ },
+ {
+ "depend": "numpy",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "ENV.deparallelize",
+ "if build.head?",
+ "system \"cmake\", \".\", *std_cmake_args,",
+ "\"-DBUILD_MATLAB=OFF\",",
+ "\"-DBUILD_OCTAVE=OFF\",",
+ "\"-DWITH_CXX=ON\"",
+ "else",
+ "system \"./configure\", \"--prefix=#{prefix}\",",
+ "\"--enable-shared\",",
+ "\"--with-cxx\",",
+ "\"--without-octave\"",
+ "system \"make\"",
+ "end",
+ "system \"make\", \"install\"",
+ "%w[0.dylib dylib a].each do |suffix|",
+ "lib.install_symlink \"#{lib}/libnlopt_cxx.#{suffix}\" => \"#{lib}/libnlopt.#{suffix}\""
+ ],
+ "version": "2.4.2",
+ "file": "nlopt.rb"
+} \ No newline at end of file