updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / ipopt / PKGBUILD
blob2d060965dd5ab543d14173f1a59a8e1b2aa4ea13
1 # Maintainer: Daniel Fiser <danfis@danfis.cz>
2 pkgname=ipopt
3 pkgver=3.9.2
4 pkgrel=3
5 pkgdesc="Ipopt (Interior Point OPTimizer) is a software package for large-scale  nonlinear optimization."
6 arch=(i686 x86_64)
7 url="https://projects.coin-or.org/Ipopt"
8 license=('GPL')
9 depends=(blas lapack)
10 makedepends=()
11 provides=()
12 conflicts=()
13 replaces=()
14 backup=()
15 install=
16 source=(http://www.coin-or.org/download/source/Ipopt/Ipopt-$pkgver.tgz)
17 noextract=()
18 md5sums=('a8787bc3ee28ec2236630ddf0ca2065e')
20 build() {
21     export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$startdir/src/Ipopt-$pkgver/ThirdParty/Metis/:$startdir/src/Ipopt-$pkgver/ThirdParty/Mumps/:$startdir/src/Ipopt-$pkgver/ThirdParty/HSL/:$startdir/src/Ipopt-$pkgver/Ipopt
23     cd $startdir/src/Ipopt-$pkgver;
25     cd ThirdParty;
26     cd Metis;
27     ./get.Metis;
28     cd ../Mumps;
29     ./get.Mumps;
30     cd ../../;
32     ./configure --prefix=/usr
34     make || return 1
35     make DESTDIR=$startdir/pkg install
37     mkdir -p $startdir/pkg/etc/ld.so.conf.d/
38     cd $startdir/pkg/etc/ld.so.conf.d/
39     echo "/usr/lib/coin" >ipopt.conf
40     echo "/usr/lib/coin/ThirdParty" >>ipopt.conf