summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Johannesen <lj@halloffame.dk>2014-03-15 14:32:34 (GMT)
committerLars Johannesen <lj@halloffame.dk>2014-03-22 14:19:37 (GMT)
commitd4e6b32e3a8ec93f0194d8dbfe2f244358848db5 (patch)
tree386a9a61134cf34dbbb6e6acbdccc940d4555336
parent446bcac56be8d4d20e3f0c52761157d20f09e273 (diff)
downloadmxe-d4e6b32e3a8ec93f0194d8dbfe2f244358848db5.zip
mxe-d4e6b32e3a8ec93f0194d8dbfe2f244358848db5.tar.gz
mxe-d4e6b32e3a8ec93f0194d8dbfe2f244358848db5.tar.bz2
Added package NLopt.
-rw-r--r--index.html4
-rw-r--r--src/nlopt.mk26
2 files changed, 30 insertions, 0 deletions
diff --git a/index.html b/index.html
index 858df9e..9f446c5 100644
--- a/index.html
+++ b/index.html
@@ -1888,6 +1888,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="website"><a href="http://www.lysator.liu.se/~nisse/nettle/">nettle</a></td>
</tr>
<tr>
+ <td class="package">nlopt</td>
+ <td class="website"><a href="http://ab-initio.mit.edu/wiki/index.php/NLopt">NLopt</a></td>
+ </tr>
+ <tr>
<td class="package">nsis</td>
<td class="website"><a href="http://nsis.sourceforge.net/">NSIS</a></td>
</tr>
diff --git a/src/nlopt.mk b/src/nlopt.mk
new file mode 100644
index 0000000..6332b80
--- /dev/null
+++ b/src/nlopt.mk
@@ -0,0 +1,26 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := nlopt
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 2.4.1
+$(PKG)_CHECKSUM := 181181a3f7dd052e0740771994eb107bd59886ad
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://ab-initio.mit.edu/$(PKG)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://ab-initio.mit.edu/wiki/index.php/NLopt' | \
+ $(SED) -n 's,.*<a href=".*nlopt-\([0-9.]\+\).tar.gz".*,\1,p' | \
+ $(SORT) -V | \
+ tail -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ $(MXE_CONFIGURE_OPTS) \
+ --with-cxx
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install
+endef