mfem: update to 4.7

This commit is contained in:
مهدي شينون (Mehdi Chinoune) 2024-05-09 18:33:04 +01:00
parent c4ad0f681f
commit 9e5b51fe41
2 changed files with 9 additions and 33 deletions

View File

@ -1,20 +0,0 @@
--- mfem-4.5.2/mesh/ncmesh.hpp.orig 2023-03-23 23:33:44.000000000 +0100
+++ mfem-4.5.2/mesh/ncmesh.hpp 2023-08-04 08:33:24.291341900 +0200
@@ -24,6 +24,7 @@
#include <vector>
#include <map>
#include <iostream>
+#include <cstdint>
namespace mfem
{
--- a/general/kdtree.hpp
+++ b/general/kdtree.hpp
@@ -17,6 +17,7 @@
#include <fstream>
#include <iostream>
#include <cmath>
+#include <cstdint>
#include <tuple>
namespace mfem

View File

@ -4,8 +4,8 @@
_realname=mfem
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=4.6
pkgrel=4
pkgver=4.7
pkgrel=1
pkgdesc='Lightweight, general, scalable C++ library for finite element methods (mingw-w64)'
arch=('any')
mingw_arch=('mingw64' 'ucrt64')
@ -23,16 +23,15 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
#"${MINGW_PACKAGE_PREFIX}-petsc"
#"${MINGW_PACKAGE_PREFIX}-slepc"
"${MINGW_PACKAGE_PREFIX}-suitesparse"
"${MINGW_PACKAGE_PREFIX}-sundials")
#"${MINGW_PACKAGE_PREFIX}-superlu")
#"${MINGW_PACKAGE_PREFIX}-sundials"
#"${MINGW_PACKAGE_PREFIX}-superlu"
"${MINGW_PACKAGE_PREFIX}-zlib")
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-msmpi")
source=("$url/archive/v$pkgver/${_realname}-${pkgver}.tar.gz"
"0001-add-missing-header.patch")
sha256sums=('250bb6aa0fd5f6a6002c072d357656241ed38acfc750e43e87d8c36a8f8a4b4f'
'ace54fd58cc30397cf8f943824fb12dd0f2b3020eb6dfe65cacd37538762f567')
source=("$url/archive/v$pkgver/${_realname}-${pkgver}.tar.gz")
sha256sums=('731bc2665c13d4099f9c9c946eb83ab07cd2e78a9575d4fa62a96cdb40d6ba0f')
apply_patch_with_msg() {
for _patch in "$@"
@ -44,9 +43,6 @@ apply_patch_with_msg() {
prepare() {
cd "${_realname}-${pkgver}"
apply_patch_with_msg \
0001-add-missing-header.patch
}
build() {
@ -74,7 +70,7 @@ build() {
-DMFEM_USE_NETCDF=ON \
-DMFEM_USE_OPENMP=ON \
-DMFEM_USE_SUITESPARSE=ON \
-DMFEM_USE_SUNDIALS=ON \
-DMFEM_USE_SUNDIALS=OFF \
-DMFEM_USE_ZLIB=ON \
-DMFEM_ENABLE_TESTING=OFF \
-DMFEM_ENABLE_EXAMPLES=OFF \
@ -102,7 +98,7 @@ build() {
-DMFEM_USE_NETCDF=ON \
-DMFEM_USE_OPENMP=ON \
-DMFEM_USE_SUITESPARSE=ON \
-DMFEM_USE_SUNDIALS=ON \
-DMFEM_USE_SUNDIALS=OFF \
-DMFEM_USE_ZLIB=ON \
-DMFEM_ENABLE_TESTING=OFF \
-DMFEM_ENABLE_EXAMPLES=OFF \