1 # Maintainer: Myles English <myles at rockhead.biz>
2 # Contributor: Feng Wang <wanng.fenng@gmail.com>
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."
8 url="http://trilinos.sandia.gov/index.html"
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')
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
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 \
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