pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ThirdParty_Mumps: initial revision (added for openlane project)



Module Name:	pkgsrc-wip
Committed By:	mayuresh <mayuresh%acm.org@localhost>
Pushed By:	mayuresh
Date:		Mon Aug 26 10:01:44 2024 +0530
Changeset:	01c5c1f6602a4b524eb3dbc8d6d8dff1b2492adb

Added Files:
	ThirdParty-Mumps/DESCR
	ThirdParty-Mumps/Makefile
	ThirdParty-Mumps/PLIST
	ThirdParty-Mumps/TODO
	ThirdParty-Mumps/distinfo

Log Message:
ThirdParty_Mumps: initial revision (added for openlane project)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=01c5c1f6602a4b524eb3dbc8d6d8dff1b2492adb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ThirdParty-Mumps/DESCR    | 23 +++++++++++++++++++++++
 ThirdParty-Mumps/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++
 ThirdParty-Mumps/PLIST    |  8 ++++++++
 ThirdParty-Mumps/TODO     |  1 +
 ThirdParty-Mumps/distinfo |  5 +++++
 5 files changed, 81 insertions(+)

diffs:
diff --git a/ThirdParty-Mumps/DESCR b/ThirdParty-Mumps/DESCR
new file mode 100644
index 0000000000..c8b2bf6143
--- /dev/null
+++ b/ThirdParty-Mumps/DESCR
@@ -0,0 +1,23 @@
+TODO: Adjust the following lines from README.md
+
+# ThirdParty-Mumps
+
+This is an autotools-based build system to build and install
+[MUltifrontal Massively Parallel sparse direct Solver](http://mumps-solver.org/) (MUMPS).
+This installation of MUMPS is used by some other COIN-OR projects.
+
+This version of ThirdParty-Mumps retrieves and builds MUMPS 5.7.1.
+
+## Dependencies
+
+- MUMPS source requires a Fortran 90 compiler.
+
+- MUMPS requires LAPACK to be available. `configure` will look for a Lapack
+  installation, but if that does not succeed, the flags to link with Lapack
+  should be specified with the `--with-lapack-lflags` argument of `configure`.
+
+- MUMPS can make use of METIS. `configure` will look for a METIS library and
+  header, but if that does not succeed, the arguments `--with-metis-lflags`
+  and `--with-metis-cflags` can be specified for `configure`.
+
+...
diff --git a/ThirdParty-Mumps/Makefile b/ThirdParty-Mumps/Makefile
new file mode 100644
index 0000000000..19d25ed483
--- /dev/null
+++ b/ThirdParty-Mumps/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	ThirdParty-Mumps
+GITHUB_TAG=	refs/tags/releases/3.0.7
+DISTNAME=	3.0.7
+PKGNAME=	${GITHUB_PROJECT}-${DISTNAME}
+CATEGORIES=	# TODO: add primary category
+MASTER_SITES=	${MASTER_SITE_GITHUB:=coin-or-tools/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	INSERT_YOUR_MAIL_ADDRESS_HERE # or use pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/coin-or-tools/ThirdParty-Mumps/
+COMMENT=	TODO: Short description of the package
+#LICENSE=	# TODO: (see mk/license.mk)
+
+WRKSRC=		${WRKDIR}/ThirdParty-Mumps-releases-3.0.7
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	pkg-config wget tar patch
+USE_LANGUAGES=	# none
+
+PKGCONFIG_OVERRIDE+=	coinmumps.pc.in
+
+USE_LANGUAGES=	c fortran
+
+MUMPS_MASTER_SITE=	http://coin-or-tools.github.io/ThirdParty-Mumps
+MUMPS_VERSION=		MUMPS_5.7.2
+MUMPS_DISTFILE=		${MUMPS_VERSION}.tar.gz
+
+# TODO: The MUMPS_DISTFILE needs to be in distinfo, extracted automatically
+# FreeBSD port math/coin-or-mumps creates a soft link to auto-extracted file. How to do that in pkgsrc?
+# Change USE_TOOLS accordingly
+post-extract:
+	cd ${WRKSRC} && wget --no-check-certificate ${MUMPS_MASTER_SITE}/${MUMPS_DISTFILE} && tar xvzf ${MUMPS_DISTFILE} && $(LN) -s ${MUMPS_VERSION} MUMPS
+
+post-patch: # patching from get.Mumps
+	@cd ${WRKSRC} && \
+		patch -p0 < mumps_mpi.patch && \
+		${MV} MUMPS/libseq/mpi.h MUMPS/libseq/mumps_mpi.h
+
+.include "../../math/blas/buildlink3.mk"
+.include "../../math/lapack/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/ThirdParty-Mumps/PLIST b/ThirdParty-Mumps/PLIST
new file mode 100644
index 0000000000..15dc71fedc
--- /dev/null
+++ b/ThirdParty-Mumps/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+include/coin-or/mumps/dmumps_c.h
+include/coin-or/mumps/mumps_c_types.h
+include/coin-or/mumps/mumps_compat.h
+include/coin-or/mumps/mumps_int_def.h
+include/coin-or/mumps/mumps_mpi.h
+lib/libcoinmumps.la
+lib/pkgconfig/coinmumps.pc
diff --git a/ThirdParty-Mumps/TODO b/ThirdParty-Mumps/TODO
new file mode 100644
index 0000000000..22dfd03a9e
--- /dev/null
+++ b/ThirdParty-Mumps/TODO
@@ -0,0 +1 @@
+- See a TODO in the Makefile
diff --git a/ThirdParty-Mumps/distinfo b/ThirdParty-Mumps/distinfo
new file mode 100644
index 0000000000..900b50f188
--- /dev/null
+++ b/ThirdParty-Mumps/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (ThirdParty-Mumps/3.0.7.tar.gz) = b4cdbe9c287b273e14a887ef28adeb5a646b36f60a056c9744223840b0e3cda5
+SHA512 (ThirdParty-Mumps/3.0.7.tar.gz) = 1eaab0759bee8b8d6d180e4db3391c198ff3afdf2549141b30e171a07c0910a36d8da5ca166d6facb90785ecfd2dd8f5152035973be45f63ab80ed894cc01511
+Size (ThirdParty-Mumps/3.0.7.tar.gz) = 300727 bytes


Home | Main Index | Thread Index | Old Index