diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nlopt.mk | 26 |
1 files changed, 26 insertions, 0 deletions
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 |