updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / trilinos / PKGBUILD
blobe98e4776e73e234f8b9525ce392c6c26112585e5
1 # Maintainer: Myles English <myles at rockhead.biz>
2 # Contributor: Feng Wang <wanng.fenng@gmail.com>
3 pkgname=trilinos
4 pkgver=10.8.4
5 pkgrel=1
6 pkgdesc="The Trilinos Project is an effort to develop algorithms and enabling technologies within an object-oriented software framework for the solution of large-scale, complex multi-physics engineering and scientific problems."
7 arch=(any)
8 url="http://trilinos.sandia.gov/index.html"
9 license=('LGPL3')
10 depends=()
11 source=(http://trilinos.sandia.gov/download/files/${pkgname}-${pkgver}-Source.tar.gz)
12 makedepends=('python2' 'python2-numpy' 'swig' 'gcc' 'openmpi' 'perl' 'blas' 'lapack')
13 md5sums=('d71c37978bc624b119d1480454b7fe58')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver-Source"
18   find ${srcdir} -name "*" -type f -exec \
19       sed -i 's#\(/usr/bin/env \|/usr/bin/\)python[2-3]*#\1python2#' {} \;
21   [[ -e build ]] || mkdir build 
22   cd build
24 cmake \
25     .. \
26     -DCMAKE_BUILD_TYPE:STRING=DEBUG \
27     -DTrilinos_ENABLE_OpenMP:BOOL=ON \
28     -DTPL_ENABLE_MPI:BOOL=ON \
29     -DTrilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
30     -DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
31     -DML_ENABLE_Aztec:BOOL=ON \
32     -DTrilinos_ENABLE_PyTrilinos:BOOL=ON \
33     -DTrilinos_ENABLE_TESTS:BOOL=OFF \
34     -DBUILD_SHARED_LIBS:BOOL=ON \
35     -DPYTHON_EXECUTABLE:PATH=/usr/bin/python2 \
36     -DML_ENABLE_MLapi:BOOL=ON \
37     -DCMAKE_INSTALL_PREFIX:PATH=/usr \
38     $EXTRA_ARGS
40     make
44 package() {
45     cd $srcdir/$pkgname-$pkgver-Source/build
46     make install DESTDIR=$pkgdir
48     mkdir -p ${pkgdir}/etc/profile.d
49     echo "export TRILINOS_DIR=/usr" > ${pkgdir}/etc/profile.d/trilinos.sh
50     chmod +x ${pkgdir}/etc/profile.d/trilinos.sh