pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
superlu: update to 5.2.1 and new-style BLAS dependency
Module Name: pkgsrc-wip
Committed By: Dr. Thomas Orgis <thomas.orgis%uni-hamburg.de@localhost>
Pushed By: thor
Date: Wed Feb 26 21:03:36 2020 +0100
Changeset: 5a68afd4de013deba2f37a5d92e26235933711bd
Added Files:
superlu/DESCR
superlu/Makefile
superlu/PLIST
superlu/buildlink3.mk
superlu/distinfo
Log Message:
superlu: update to 5.2.1 and new-style BLAS dependency
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5a68afd4de013deba2f37a5d92e26235933711bd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
superlu/DESCR | 8 ++++++++
superlu/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++
superlu/PLIST | 14 ++++++++++++++
superlu/buildlink3.mk | 22 ++++++++++++++++++++++
superlu/distinfo | 6 ++++++
5 files changed, 90 insertions(+)
diffs:
diff --git a/superlu/DESCR b/superlu/DESCR
new file mode 100644
index 0000000000..ff615a572a
--- /dev/null
+++ b/superlu/DESCR
@@ -0,0 +1,8 @@
+SuperLU contains a set of subroutines to solve a sparse linear system
+A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The
+columns of A may be preordered before factorization; the preordering
+for sparsity is completely separate from the factorization.
+
+SuperLU is implemented in ANSI C, and must be compiled with standard
+ANSI C compilers. It provides functionality for both real and complex
+matrices, in both single and double precision.
diff --git a/superlu/Makefile b/superlu/Makefile
new file mode 100644
index 0000000000..4407c45b03
--- /dev/null
+++ b/superlu/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.28 2019/08/11 13:17:49 wiz Exp $
+
+PORTVERSION= 5.2.1
+DISTNAME= superlu-${PORTVERSION}
+PKGNAME= superlu-${PORTVERSION}
+PKGREVISION= 8
+CATEGORIES= math
+MASTER_SITES= -https://github.com/xiaoyeli/superlu/archive/v${PORTVERSION}.tar.gz
+
+MAINTAINER= thomas.orgis%uni-hamburg.de@localhost
+HOMEPAGE= https://portal.nersc.gov/project/sparse/superlu/
+COMMENT= ANSI C routine library for the solution of sparse linear systems
+
+USE_LANGUAGES= c fortran
+USE_CMAKE= yes
+
+CONFIGURE_DIRS= build
+CMAKE_ARG_PATH= ${WRKSRC}
+
+# Armadillo needs shared lib, best would be to install both.
+CMAKE_ARGS= -Denable_blaslib=off \
+ -Denable_doc=off \
+ -DBUILD_SHARED_LIBS=on
+
+# The cmake machinery finds plain openblas first,
+# do not know how to insert a specific lib. But single-threaded
+# openblas does make sense, I suppose, for sparse matrices.
+BLAS_ACCEPTED= openblas netlib
+
+# /usr/bin/ar: ../libsuperlu.a: Error reading dlamch.o: File truncated
+#MAKE_JOBS_SAFE= no
+
+TEST_TARGET= test
+
+post-extract:
+ ${RUN} mkdir -p ${WRKSRC}/build
+
+.include "../../wip/mk/blas.buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/superlu/PLIST b/superlu/PLIST
new file mode 100644
index 0000000000..7367b04de3
--- /dev/null
+++ b/superlu/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD$
+include/slu_Cnames.h
+include/slu_cdefs.h
+include/slu_dcomplex.h
+include/slu_ddefs.h
+include/slu_scomplex.h
+include/slu_sdefs.h
+include/slu_util.h
+include/slu_zdefs.h
+include/superlu_enum_consts.h
+include/supermatrix.h
+lib/libsuperlu.so
+lib/libsuperlu.so.5
+lib/libsuperlu.so.${PKGVERSION}
diff --git a/superlu/buildlink3.mk b/superlu/buildlink3.mk
new file mode 100644
index 0000000000..d20593310b
--- /dev/null
+++ b/superlu/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.8 2019/08/11 13:17:49 wiz Exp $
+
+BUILDLINK_TREE+= superlu
+
+.if !defined(SUPERLU_BUILDLINK3_MK)
+SUPERLU_BUILDLINK3_MK:=
+
+# No clue about API/ABI compatibility, but at
+# least that matters a bit less with the static lib.
+# Since API changed a lot since version 2, use the
+# jump to 5.2.1 as new minimum.
+BUILDLINK_API_DEPENDS.superlu+= superlu>=5.2.1nb8
+BUILDLINK_ABI_DEPENDS.superlu?= superlu>=5.2.1nb8
+BUILDLINK_PKGSRCDIR.superlu?= ../../wip/superlu
+
+# When it is the static lib, the users actually have
+# to link to blas themselves. Fragile, perhaps.
+.include "../../wip/mk/blas.buildlink3.mk"
+
+.endif # SUPERLU_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -superlu
diff --git a/superlu/distinfo b/superlu/distinfo
new file mode 100644
index 0000000000..be7cb7f1ba
--- /dev/null
+++ b/superlu/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.8 2015/11/25 12:51:42 jperkin Exp $
+
+SHA1 (superlu-5.2.1.tar.gz) = cbccbb36a2c351d25e0a064be663c0a70c849bee
+RMD160 (superlu-5.2.1.tar.gz) = 01de8ed1f56c6bcdd43e1137c1f145b829d8d848
+SHA512 (superlu-5.2.1.tar.gz) = c5f9ca6055b6861dcc89e31c446c9f57a4e16333f9f24f109e8f375eded878005fa520ab39d2c1dd0ce12f289f9e251aef47da58c975bf5b1f09ca7539194e90
+Size (superlu-5.2.1.tar.gz) = 2468374 bytes
Home |
Main Index |
Thread Index |
Old Index