summaryrefslogtreecommitdiff
path: root/math/gmm++
diff options
context:
space:
mode:
Diffstat (limited to 'math/gmm++')
-rw-r--r--math/gmm++/Makefile21
-rw-r--r--math/gmm++/distinfo6
-rw-r--r--math/gmm++/files/extra-patch-mumps10
-rw-r--r--math/gmm++/files/extra-patch-superlu10
4 files changed, 41 insertions, 6 deletions
diff --git a/math/gmm++/Makefile b/math/gmm++/Makefile
index b43a6b76e2ff..a4a675a83741 100644
--- a/math/gmm++/Makefile
+++ b/math/gmm++/Makefile
@@ -1,10 +1,11 @@
PORTNAME= gmm++
-PORTVERSION= 5.4.2
+DISTVERSION= 5.4.4
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://download-mirror.savannah.gnu.org/releases/getfem/stable/
-DISTNAME= ${PORTNAME:S/+//g}-${PORTVERSION}
+DISTNAME= ${PORTNAME:S/+//g}-${DISTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= atanubiswas484@gmail.com
COMMENT= Generic matrix template library
WWW= https://getfem.org/gmm/
@@ -20,4 +21,18 @@ GNU_CONFIGURE= yes
NO_ARCH= yes
NO_BUILD= yes
+OPTIONS_DEFAULT= SUPERLU
+OPTIONS_SINGLE= SOLVER
+OPTIONS_SINGLE_SOLVER= MUMPS SUPERLU
+
+SOLVER_DESC= Simultaneous equations solver
+MUMPS_DESC= Use MUMPS (math/mumps)
+SUPERLU_DESC= Use SuperLU (math/superlu)
+
+MUMPS_RUN_DEPENDS= ${LOCALBASE}/include/cmumps_c.h:math/mumps
+MUMPS_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-mumps
+
+SUPERLU_RUN_DEPENDS= ${LOCALBASE}/include/superlu/supermatrix.h:math/superlu
+SUPERLU_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-superlu
+
.include <bsd.port.mk>
diff --git a/math/gmm++/distinfo b/math/gmm++/distinfo
index f67ab2d035df..e2ccdef8e2d0 100644
--- a/math/gmm++/distinfo
+++ b/math/gmm++/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1661540522
-SHA256 (gmm-5.4.2.tar.gz) = 5206e732643f6934109028b2f173660f2c2edcb0ee269228d694acca6e22c88a
-SIZE (gmm-5.4.2.tar.gz) = 545222
+TIMESTAMP = 1752012969
+SHA256 (gmm-5.4.4.tar.gz) = 15eb1943011b92665aab3b02ecf3cede1cf89ea15a9006f81f2ba2cd662aa02b
+SIZE (gmm-5.4.4.tar.gz) = 551327
diff --git a/math/gmm++/files/extra-patch-mumps b/math/gmm++/files/extra-patch-mumps
new file mode 100644
index 000000000000..7df79cd5e4ab
--- /dev/null
+++ b/math/gmm++/files/extra-patch-mumps
@@ -0,0 +1,10 @@
+--- include/gmm/gmm_arch_config.h.orig 2025-07-10 22:02:57 UTC
++++ include/gmm/gmm_arch_config.h
+@@ -2,6 +2,7 @@
+ #define _SRC_GMM_GMM_ARCH_CONFIG_H 1
+ // enable the following line for OpenMP support
+ // #define GMM_HAVE_OPENMP
++#define GMM_USES_MUMPS
+ //
+ /* once: _SRC_GMM_GMM_ARCH_CONFIG_H */
+ #endif
diff --git a/math/gmm++/files/extra-patch-superlu b/math/gmm++/files/extra-patch-superlu
new file mode 100644
index 000000000000..4afe7408af44
--- /dev/null
+++ b/math/gmm++/files/extra-patch-superlu
@@ -0,0 +1,10 @@
+--- include/gmm/gmm_arch_config.h.orig 2025-07-10 22:02:57 UTC
++++ include/gmm/gmm_arch_config.h
+@@ -2,6 +2,7 @@
+ #define _SRC_GMM_GMM_ARCH_CONFIG_H 1
+ // enable the following line for OpenMP support
+ // #define GMM_HAVE_OPENMP
++#define GMM_USES_SUPERLU
+ //
+ /* once: _SRC_GMM_GMM_ARCH_CONFIG_H */
+ #endif