1 # Maintainer: David Kremer <david.kremer.dk@gmail.com>
6 pkgdesc="nlopt : a non-linear optimization package, callable from C, C++, Fortran, Matlab \
7 or GNU Octave, Python, GNU Guile, and GNU R."
9 url="http://ab-initio.mit.edu/wiki/index.php/NLopt"
14 optdepends=('octave: for use with octave',
15 'python2: for use with python',
16 'python-numpy: for use with python',
17 'guile: for use with the guile proramming language',
18 'matlab: for use with matlab')
19 # Usage: ./configure [OPTION]... [VAR=VALUE]...
21 # Installation directories:
22 # --prefix=PREFIX install architecture-independent files in
24 # --without-threadlocal no thread-local storage keyword
25 # --without-guile don't compile Guile plugin
26 # --without-python don't compile Python plugin
27 # --without-octave don't compile Octave plugin
28 # --without-matlab don't compile Matlab plugin
36 source=("http://ab-initio.mit.edu/nlopt/$pkgname-$pkgver.tar.gz")
38 md5sums=('9c60c6380a10c6d2a06895f0e8756d4f') # generate with 'makepkg -g'
41 cd $srcdir/$pkgname-$pkgver
42 ./configure --prefix=/usr --enable-shared PYTHON=python2 --with-cxx
46 cd $srcdir/$pkgname-$pkgver
47 make DESTDIR=$pkgdir install