updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / nlopt / PKGBUILD
blobe0b693c51c006ab0715219ac30328314b98ef362
1 # Maintainer: David Kremer <david.kremer.dk@gmail.com>
3 pkgname=nlopt
4 pkgver=2.2.4
5 pkgrel=1
6 pkgdesc="nlopt : a non-linear optimization package, callable from C, C++, Fortran, Matlab \
7 or GNU Octave, Python, GNU Guile, and GNU R."
8 arch=('i686' 'x86_64')
9 url="http://ab-initio.mit.edu/wiki/index.php/NLopt"
10 license=('LGPL')
11 groups=()
12 depends=()
13 makedepends=('gcc')
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 
23 # PREFIX
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
30 provides=()
31 conflicts=()
32 replaces=()
33 backup=()
34 options=()
35 install=
36 source=("http://ab-initio.mit.edu/nlopt/$pkgname-$pkgver.tar.gz")
37 noextract=()
38 md5sums=('9c60c6380a10c6d2a06895f0e8756d4f')  # generate with 'makepkg -g'
40 build() {
41   cd $srcdir/$pkgname-$pkgver
42   ./configure --prefix=/usr --enable-shared PYTHON=python2 --with-cxx
45 package() {
46   cd $srcdir/$pkgname-$pkgver
47   make DESTDIR=$pkgdir install