[150509] trunk/dports/math/superlu/Portfile
sean at macports.org
sean at macports.org
Wed Jul 20 13:37:55 PDT 2016
Revision: 150509
https://trac.macports.org/changeset/150509
Author: sean at macports.org
Date: 2016-07-20 13:37:55 -0700 (Wed, 20 Jul 2016)
Log Message:
-----------
superlu: update to 5.2.1 which supports cmake
Modified Paths:
--------------
trunk/dports/math/superlu/Portfile
Modified: trunk/dports/math/superlu/Portfile
===================================================================
--- trunk/dports/math/superlu/Portfile 2016-07-20 20:30:49 UTC (rev 150508)
+++ trunk/dports/math/superlu/Portfile 2016-07-20 20:37:55 UTC (rev 150509)
@@ -2,9 +2,10 @@
# $Id$
PortSystem 1.0
+PortGroup cmake 1.0
name superlu
-version 5.1.1
+version 5.2.1
categories math
license BSD
platforms darwin
@@ -17,48 +18,23 @@
homepage http://crd.lbl.gov/~xiaoye/SuperLU
master_sites ${homepage}
-checksums rmd160 16c0d070032392fe9f6477920a2c585dacfeb984 \
- sha256 cec5022c8dc16e38e5c8bc92ed196144fe58864bd1c5ad73fb698398308f8065
+checksums rmd160 2aae43b29da1301e70625d79d41453e5d5ed04e2 \
+ sha256 28fb66d6107ee66248d5cf508c79de03d0621852a0ddeba7301801d3d859f463
distname ${name}_${version}
worksrcdir SuperLU_${version}
-use_configure no
-use_parallel_build no
+configure.cflags -Os -mtune=native
-configure.cflags -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -O3 -mtune=native
-
-build.target lib
-build.args LAAUX="" SLASRC="" DLASRC="" CLASRC="" ZLASRC="" SCLAUX="" DZLAUX=""
-
-post-extract {
- reinplace "s|^SuperLUroot.*$|SuperLUroot = ${worksrcpath}|" ${worksrcpath}/make.inc
- reinplace "s|^SUPERLULIB.*$|SUPERLULIB = \$(SuperLUroot)/lib/libsuperlu_${version}.a|" ${worksrcpath}/make.inc
- reinplace "s|^BLASLIB.*$|BLASLIB = -framework Accelerate|" ${worksrcpath}/make.inc
- reinplace "s|^CC.*$|CC = ${configure.cc}|" ${worksrcpath}/make.inc
- reinplace "s|^LOADER.*$|LOADER = ${configure.cc}|" ${worksrcpath}/make.inc
- reinplace "s|^CFLAGS.*$|CFLAGS = ${configure.cflags}|" ${worksrcpath}/make.inc
- reinplace "s|^MATLAB.*$||" ${worksrcpath}/make.inc
- reinplace "s|^PLAT.*$||" ${worksrcpath}/make.inc
- reinplace "s|^RANLIB.*$|RANLIB = ranlib -c|" ${worksrcpath}/make.inc
- reinplace "s|^TMGLIB.*$|TMGLIB = tmglib.a|" ${worksrcpath}/make.inc
-
- # Prefixing a namespace so that colamd doesn't conflict with itself (used in
- # other packages
- reinplace "s|^#include \"colamd\.h\"|#include \"slu_colamd\.h\"|" ${worksrcpath}/SRC/colamd.c
- reinplace "s|^#include \"colamd\.h\"|#include \"slu_colamd\.h\"|" ${worksrcpath}/SRC/get_perm_c.c
- move ${worksrcpath}/SRC/colamd.h ${worksrcpath}/SRC/slu_colamd.h
+post-patch {
+ reinplace "s|^enable_language.*Fortran.*||" ${worksrcpath}/CMakeLists.txt
+ reinplace "s|^set(NOFORTRAN FALSE)$|set(NOFORTRAN TRUE)|" ${worksrcpath}/CMakeLists.txt
}
-destroot {
- # make shared libraries
- system -W ${worksrcpath}/SRC "${configure.cc} *.o -framework Accelerate -dynamiclib -Wl,-headerpad_max_install_names,-multiply_defined,suppress,-commons,use_dylibs,-search_paths_first -install_name ${prefix}/lib/lib${distname}.dylib -o lib${distname}.dylib"
+configure.args-append \
+ -DTPL_BLAS_LIBRARIES="-framework Accelerate" \
+ -Denable_tests=OFF \
+ -DUSE_XSDK_DEFAULTS=ON \
+ -DXSDK_ENABLE_Fortran=OFF
- xinstall -W ${worksrcpath}/SRC -m 644 slu_colamd.h slu_Cnames.h slu_dcomplex.h slu_scomplex.h superlu_enum_consts.h \
- slu_util.h supermatrix.h html_mainpage.h slu_cdefs.h slu_ddefs.h slu_sdefs.h slu_zdefs.h \
- ${destroot}${prefix}/include
- xinstall -m 644 ${worksrcpath}/SRC/libsuperlu_${version}.dylib ${destroot}${prefix}/lib
- ln -s ${prefix}/lib/lib${distname}.dylib ${destroot}${prefix}/lib/libsuperlu.dylib
-}
-
livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160720/77405e41/attachment-0001.html>
More information about the macports-changes
mailing list