aboutsummaryrefslogtreecommitdiff
path: root/libraries/trilinos/trilinos.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2016-06-05 18:44:24 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-06-08 08:33:37 +0700
commit6d036ceded4ccf806277c46057c85febf80093e7 (patch)
tree81c87334562ed71c96f462cf3718577ae39b1da0 /libraries/trilinos/trilinos.SlackBuild
parentacd610b56f77bc6cfc4e48a73786408b867c1118 (diff)
libraries/trilinos: Updated for version 12.4.2.
Big thanks to Thomas Morper!! Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'libraries/trilinos/trilinos.SlackBuild')
-rw-r--r--libraries/trilinos/trilinos.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/libraries/trilinos/trilinos.SlackBuild b/libraries/trilinos/trilinos.SlackBuild
index 81808a8b3176a..650da5beb6f82 100644
--- a/libraries/trilinos/trilinos.SlackBuild
+++ b/libraries/trilinos/trilinos.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=trilinos
-VERSION=${VERSION:-11.10.2}
+VERSION=${VERSION:-12.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,6 +69,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/trilinos-12.4.2_lapack-3.6.0.patch
# Use CUDA SDK and CUSPARSE.
if [ "${CUDA:-no}" == "yes" ]; then
@@ -173,6 +174,10 @@ fi
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=RELEASE ..
+ for f in $(grep -r -l /usr//usr/lib .); do
+ sed -i -e 's:/usr//usr/lib:/usr/lib:g' $f
+ done
+
make
ctest
make install DESTDIR=$PKG