From owner-dev-commits-ports-main@freebsd.org Tue May 25 10:13:51 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 8F6446496BD; Tue, 25 May 2021 10:13:51 +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 4Fq90H24CZz4Z1l; Tue, 25 May 2021 10:13:51 +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 14B391BF30; Tue, 25 May 2021 10:13:51 +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 14PADpHG001283; Tue, 25 May 2021 10:13:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14PADpj4001282; Tue, 25 May 2021 10:13:51 GMT (envelope-from git) Date: Tue, 25 May 2021 10:13:51 GMT Message-Id: <202105251013.14PADpj4001282@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: d80348e84ea6 - main - suitesparse-spqr: new port for the module SPQR 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: d80348e84ea68d15b15ee151d552e1c5bd2b64f5 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:51 -0000 The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=d80348e84ea68d15b15ee151d552e1c5bd2b64f5 commit d80348e84ea68d15b15ee151d552e1c5bd2b64f5 Author: Thierry Thomas AuthorDate: 2021-05-24 16:45:06 +0000 Commit: Thierry Thomas CommitDate: 2021-05-25 10:00:09 +0000 suitesparse-spqr: new port for the module SPQR of SuiteSparse --- math/suitesparse-spqr/Makefile | 32 ++++++++++++++++++++++ .../files/patch-SPQR_Demo_Makefile | 15 ++++++++++ math/suitesparse-spqr/pkg-descr | 6 ++++ math/suitesparse-spqr/pkg-plist | 9 ++++++ 4 files changed, 62 insertions(+) diff --git a/math/suitesparse-spqr/Makefile b/math/suitesparse-spqr/Makefile new file mode 100644 index 000000000000..9d0995c8a0ec --- /dev/null +++ b/math/suitesparse-spqr/Makefile @@ -0,0 +1,32 @@ +# Created by: Thierry Thomas () + +PORTNAME= SPQR +PORTVERSION= 2.0.9 +CATEGORIES= math + +COMMENT= Sparse QR factorization + +LICENSE= GPLv2+ + +LIB_DEPENDS= libamd.so:math/suitesparse-amd \ + libcamd.so:math/suitesparse-camd \ + libcolamd.so:math/suitesparse-colamd \ + libccolamd.so:math/suitesparse-ccolamd \ + libcholmod.so:math/suitesparse-cholmod + +USES= localbase:ldflags + +BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} +USE_LDCONFIG= yes +BLAS_NEEDED= yes +OMP_NEEDED= yes + +# See https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/72 and PR 252651 +#OPTIONS_DEFINE+= TBB +#OPTIONS_DEFAULT+= TBB +#TBB_DESC= Intel threading building blocks +#TBB_LIB_DEPENDS= libtbb.so:devel/tbb +#TBB_MAKE_ENV= TBB="-ltbb" SPQR_CONFIG="-DHAVE_TBB" + +.include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" +.include diff --git a/math/suitesparse-spqr/files/patch-SPQR_Demo_Makefile b/math/suitesparse-spqr/files/patch-SPQR_Demo_Makefile new file mode 100644 index 000000000000..ce057a7eeab4 --- /dev/null +++ b/math/suitesparse-spqr/files/patch-SPQR_Demo_Makefile @@ -0,0 +1,15 @@ +--- SPQR/Demo/Makefile.orig 2021-05-17 01:04:52 UTC ++++ SPQR/Demo/Makefile +@@ -126,12 +126,6 @@ gpu4: qrdemo_gpu + + library: metis + ( cd ../Lib ; $(MAKE) ) +- ( cd ../../AMD ; $(MAKE) library ) +- ( cd ../../SuiteSparse_config ; $(MAKE) library ) +- - ( cd ../../CHOLMOD && $(MAKE) library ) +- - ( cd ../../COLAMD && $(MAKE) library ) +- - ( cd ../../CCOLAMD && $(MAKE) library ) +- - ( cd ../../CAMD && $(MAKE) library ) + ifneq ($(GPU_CONFIG),) + - ( cd ../../SuiteSparse_GPURuntime && $(MAKE) library ) + - ( cd ../../GPUQREngine && $(MAKE) library ) diff --git a/math/suitesparse-spqr/pkg-descr b/math/suitesparse-spqr/pkg-descr new file mode 100644 index 000000000000..3365195ab9f2 --- /dev/null +++ b/math/suitesparse-spqr/pkg-descr @@ -0,0 +1,6 @@ +This port installs the module SPQR of SuiteSparse. + +SuiteSparseQR is a multithreaded, multifrontal, rank-revealing sparse QR +factorization method. + +WWW: http://faculty.cse.tamu.edu/davis/suitesparse.html diff --git a/math/suitesparse-spqr/pkg-plist b/math/suitesparse-spqr/pkg-plist new file mode 100644 index 000000000000..3792170306a6 --- /dev/null +++ b/math/suitesparse-spqr/pkg-plist @@ -0,0 +1,9 @@ +include/suitesparse/SuiteSparseQR.hpp +include/suitesparse/SuiteSparseQR_C.h +include/suitesparse/SuiteSparseQR_definitions.h +include/suitesparse/spqr.hpp +lib/libspqr.so +lib/libspqr.so.2 +lib/libspqr.so.2.0.9 +%%PORTDOCS%%%%DOCSDIR%%/SPQR_README.txt +%%PORTDOCS%%%%DOCSDIR%%/spqr_user_guide.pdf