[152186] trunk/dports/math/sundials
sean at macports.org
sean at macports.org
Wed Aug 31 13:58:38 PDT 2016
Revision: 152186
https://trac.macports.org/changeset/152186
Author: sean at macports.org
Date: 2016-08-31 13:58:38 -0700 (Wed, 31 Aug 2016)
Log Message:
-----------
sundials: update to 2.6.2; fixes #51964
Modified Paths:
--------------
trunk/dports/math/sundials/Portfile
Removed Paths:
-------------
trunk/dports/math/sundials/files/
Modified: trunk/dports/math/sundials/Portfile
===================================================================
--- trunk/dports/math/sundials/Portfile 2016-08-31 20:58:19 UTC (rev 152185)
+++ trunk/dports/math/sundials/Portfile 2016-08-31 20:58:38 UTC (rev 152186)
@@ -2,11 +2,11 @@
# $Id$
PortSystem 1.0
+PortGroup cmake 1.0
PortGroup mpi 1.0
name sundials
-version 2.5.0
-revision 1
+version 2.6.2
categories math devel
license bsd
platforms darwin
@@ -25,21 +25,27 @@
systems.
homepage http://computation.llnl.gov/casc/sundials/main.html
-master_sites http://ftp.mcs.anl.gov/pub/petsc/externalpackages
+master_sites http://computation.llnl.gov/projects/sundials-suite-nonlinear-differential-algebraic-equation-solvers/download/
-checksums rmd160 c489fcb114f6846c7d5aef2d0eb096cb96f3fbc9 \
- sha256 9935760931fa6539edd0741acbcf4986770426fd5ea40e50ad4ebed0fc77b0d3
+checksums rmd160 da6549605b45ad698dfe40a5136b64a7a408d6c6 \
+ sha256 d8ed0151509dd2b0f317b318a4175f8b95a174340fc3080b8c20617da8aa4d2f
mpi.setup
-patchfiles sundials-2.5.0_destdir.patch
-patch.pre_args -p1
+configure.args-append \
+ -DCXX_ENABLE=OFF \
+ -DLAPACK_ENABLE=ON \
+ -DMPI_ENABLE=OFF
-configure.args --enable-shared \
- --disable-mpi \
- --without-blas \
- --without-lapack
+configure.post_args ..
+configure.dir ${worksrcpath}/build
+build.dir ${worksrcpath}/build
+
+post-patch {
+ file mkdir ${worksrcpath}/build
+}
+
if {![mpi_variant_isset]} {
default_variants +mpich
}
@@ -60,37 +66,25 @@
} else {
configure.args-delete --without-blas --without-lapack
if {![variant_isset atlas]} {
- configure.args-append --with-blas="-framework Accelerate" \
- --with-lapack="-framework Accelerate"
+ configure.args-append \
+ -DLAPACK_LIBRARIES="/usr/lib/liblapack.dylib\;/usr/lib/libblas.dylib"
}
}
pre-configure {
if {[mpi_variant_isset]} {
- configure.args-delete --disable-mpi
- configure.args-append --enable-mpi \
- --with-mpicc=${mpi.cc} \
- --with-mpif77=${mpi.fc}
+ configure.args-delete -DMPI_ENABLE=OFF
+ configure.args-append -DMPI_ENABLE=ON \
+ -DMPI_MPICC=${prefix}/bin/${mpi.cc} \
+ -DMPI_RUN_COMMAND=${prefix}/bin/${mpi.exec}
}
}
-# gcc is hardcoded in libtool, so we change it to use the CC it found from
-# configure
-post-configure {
- reinplace "s,`gcc,`\$CC," ${worksrcpath}/libtool
-}
-
variant atlas description {build with atlas (requires a fortran compiler)} {
depends_lib-append port:atlas
- configure.args-append --with-blas=${prefix}/lib/libtatlas.dylib
- configure.args-append --with-lapack=${prefix}/lib/libtatlas.dylib
+ configure.args-append -DLAPACK_LIBRARIES=${prefix}/lib/libtatlas.dylib
}
-post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath} LICENSE README ${destroot}${prefix}/share/doc/${name}
-}
-
variant doc description {install pdf documentation} {
post-destroot {
eval copy [glob ${worksrcpath}/doc/*] ${destroot}${prefix}/share/doc/${name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160831/39073a0b/attachment.html>
More information about the macports-changes
mailing list