aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-support/nlopt/nlopt.inc
diff options
context:
space:
mode:
authorrepo syncronan <ronan@iot.bzh>2017-11-02 18:57:54 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2017-11-17 16:22:44 +0100
commitb7c0f4c8ea868cb54f57a906af2841d9ac5af279 (patch)
tree0139acff19aec8136951551495ad10d500f5801f /meta-rcar-gen3-adas/recipes-support/nlopt/nlopt.inc
parent769a9fed56be7349ffe3777a93abb1f36cbc0edb (diff)
[kingfishe] first draft
Change-Id: I83e9d07e020cc3ee399e29915a56333a111781b0 Signed-off-by: repo syncronan <ronan@iot.bzh>
Diffstat (limited to 'meta-rcar-gen3-adas/recipes-support/nlopt/nlopt.inc')
-rw-r--r--meta-rcar-gen3-adas/recipes-support/nlopt/nlopt.inc32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-rcar-gen3-adas/recipes-support/nlopt/nlopt.inc b/meta-rcar-gen3-adas/recipes-support/nlopt/nlopt.inc
new file mode 100644
index 0000000..245fef2
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-support/nlopt/nlopt.inc
@@ -0,0 +1,32 @@
+DESCRIPTION = "library for nonlinear optimization, wrapping many algorithms for global and local, constrained or unconstrained, optimization"
+HOMEPAGE = "http://ab-initio.mit.edu/wiki/index.php/NLopt"
+SECTION = "System/Libraries"
+LICENSE = "LGPL-2.1 | MIT"
+
+LIC_FILES_CHKSUM ??= "file://COPYING;md5=7036bf07f719818948a837064b1af213"
+
+inherit autotools pkgconfig
+
+DEPENDS += "swig-native"
+
+# remove dead weight from the build
+EXTRA_OECONF += " \
+ --without-guile \
+ --without-python \
+ --without-octave \
+ --without-matlab \
+ --enable-shared \
+"
+
+# see https://github.com/stevengj/nlopt/issues/29
+EXTRA_OECONF += "--enable-maintainer-mode"
+
+EXTRA_OECONF_remove = "--disable-static"
+
+# see https://github.com/stevengj/nlopt/issues/9
+do_configure_prepend () {
+ touch ${S}/swig/nlopt.scm.in
+}
+
+SRC_URI_append = " file://0001-Fix-compilation-error.patch"
+