mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
suitesparse-klu: new port for the module KLU of SuiteSparse
This commit is contained in:
parent
21ddf7a6be
commit
14cd75c20d
4 changed files with 59 additions and 0 deletions
25
math/suitesparse-klu/Makefile
Normal file
25
math/suitesparse-klu/Makefile
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Created by: Thierry Thomas (<thierry@pompo.net>)
|
||||
|
||||
PORTNAME= KLU
|
||||
PORTVERSION= 1.3.9
|
||||
CATEGORIES= math
|
||||
|
||||
COMMENT= Sparse LU factorization, for circuit simulation
|
||||
|
||||
LICENSE= LGPL21+
|
||||
|
||||
LIB_DEPENDS= libmetis.so:math/metis \
|
||||
libamd.so:math/suitesparse-amd \
|
||||
libbtf.so:math/suitesparse-btf \
|
||||
libcamd.so:math/suitesparse-camd \
|
||||
libcolamd.so:math/suitesparse-colamd \
|
||||
libccolamd.so:math/suitesparse-ccolamd \
|
||||
libcholmod.so:math/suitesparse-cholmod
|
||||
|
||||
USES= localbase:ldflags
|
||||
OMP_NEEDED= yes
|
||||
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
|
||||
.include <bsd.port.post.mk>
|
18
math/suitesparse-klu/files/patch-KLU_Demo_Makefile
Normal file
18
math/suitesparse-klu/files/patch-KLU_Demo_Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- KLU/Demo/Makefile.orig 2021-05-17 01:04:52 UTC
|
||||
+++ KLU/Demo/Makefile
|
||||
@@ -32,15 +32,7 @@ all: library klu_simple kludemo kluldemo
|
||||
- ./kluldemo < ../Matrix/ctina.mtx
|
||||
|
||||
library:
|
||||
- ( cd ../../SuiteSparse_config ; $(MAKE) )
|
||||
( cd ../Lib ; $(MAKE) )
|
||||
- ( cd ../../BTF ; $(MAKE) library )
|
||||
- ( cd ../../AMD ; $(MAKE) library )
|
||||
- ( cd ../../COLAMD ; $(MAKE) library )
|
||||
- ( cd ../../CHOLMOD ; $(MAKE) library )
|
||||
- - ( cd ../../CAMD ; $(MAKE) )
|
||||
- - ( cd ../../CCOLAMD ; $(MAKE) )
|
||||
- - ( cd ../.. ; $(MAKE) metis )
|
||||
|
||||
purge: distclean
|
||||
|
10
math/suitesparse-klu/pkg-descr
Normal file
10
math/suitesparse-klu/pkg-descr
Normal file
|
@ -0,0 +1,10 @@
|
|||
This port installs the module KLU of SuiteSparse.
|
||||
|
||||
KLU is a set of routines for solving sparse linear systems of equations. It is
|
||||
particularly well-suited to matrices arising in SPICE-like circuit simulation
|
||||
applications. It relies on a permutation to block triangular form (BTF), several
|
||||
methods for finding a fill-reducing ordering (variants of approximate minimum
|
||||
degree, and nested dissection), and a sparse left-looking LU factorization
|
||||
method to factorize each block.
|
||||
|
||||
WWW: http://faculty.cse.tamu.edu/davis/suitesparse.html
|
6
math/suitesparse-klu/pkg-plist
Normal file
6
math/suitesparse-klu/pkg-plist
Normal file
|
@ -0,0 +1,6 @@
|
|||
include/suitesparse/klu.h
|
||||
lib/libklu.so
|
||||
lib/libklu.so.1
|
||||
lib/libklu.so.1.3.8
|
||||
%%PORTDOCS%%%%DOCSDIR%%/KLU_README.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/KLU_UserGuide.pdf
|
Loading…
Add table
Reference in a new issue