From owner-dev-commits-ports-main@freebsd.org Tue May 25 10:13:45 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D2741649557; Tue, 25 May 2021 10:13:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fq9095QKbz4Yq3; Tue, 25 May 2021 10:13:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6DF721BCC1; Tue, 25 May 2021 10:13:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14PADjZJ001172; Tue, 25 May 2021 10:13:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14PADjri001171; Tue, 25 May 2021 10:13:45 GMT (envelope-from git) Date: Tue, 25 May 2021 10:13:45 GMT Message-Id: <202105251013.14PADjri001171@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 14cd75c20d1a - main - suitesparse-klu: new port for the module KLU of SuiteSparse MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 14cd75c20d1a7e6b1b35d3af7e87e7105e8d7ec1 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2021 10:13:46 -0000 The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=14cd75c20d1a7e6b1b35d3af7e87e7105e8d7ec1 commit 14cd75c20d1a7e6b1b35d3af7e87e7105e8d7ec1 Author: Thierry Thomas AuthorDate: 2021-05-24 16:42:48 +0000 Commit: Thierry Thomas CommitDate: 2021-05-25 10:00:07 +0000 suitesparse-klu: new port for the module KLU of SuiteSparse --- math/suitesparse-klu/Makefile | 25 ++++++++++++++++++++++ math/suitesparse-klu/files/patch-KLU_Demo_Makefile | 18 ++++++++++++++++ math/suitesparse-klu/pkg-descr | 10 +++++++++ math/suitesparse-klu/pkg-plist | 6 ++++++ 4 files changed, 59 insertions(+) diff --git a/math/suitesparse-klu/Makefile b/math/suitesparse-klu/Makefile new file mode 100644 index 000000000000..f1096b2dcc5e --- /dev/null +++ b/math/suitesparse-klu/Makefile @@ -0,0 +1,25 @@ +# Created by: Thierry Thomas () + +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 diff --git a/math/suitesparse-klu/files/patch-KLU_Demo_Makefile b/math/suitesparse-klu/files/patch-KLU_Demo_Makefile new file mode 100644 index 000000000000..a8e5fa35797b --- /dev/null +++ b/math/suitesparse-klu/files/patch-KLU_Demo_Makefile @@ -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 + diff --git a/math/suitesparse-klu/pkg-descr b/math/suitesparse-klu/pkg-descr new file mode 100644 index 000000000000..cfd39e997b15 --- /dev/null +++ b/math/suitesparse-klu/pkg-descr @@ -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 diff --git a/math/suitesparse-klu/pkg-plist b/math/suitesparse-klu/pkg-plist new file mode 100644 index 000000000000..be3e628039a5 --- /dev/null +++ b/math/suitesparse-klu/pkg-plist @@ -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