academic/gmsh: Updated for version 4.12.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Fellype do Nascimento 2024-01-18 07:49:56 +07:00 committed by Willy Sudiarto Raharjo
parent 1c5dfd674f
commit ffbdbdc24e
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 18 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Slackware build script for gmsh
# Copyright 2020-2023 Fellype do Nascimento, Guaratingueta, Brazil
# Copyright 2020-2024 Fellype do Nascimento, Guaratingueta, Brazil
#
# Based on SlackBuild by Loris Vincenzi and PKGBUILD for gmsh at AUR
#
@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gmsh
VERSION=${VERSION:-4.11.1}
VERSION=${VERSION:-4.12.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -84,7 +84,9 @@ find -L . \
# do it using BUILDSTATICLIB=yes ./gmsh.SlackBuild
# default is BUILDSTATICLIB=no
if [ "${BUILDSTATICLIB:-no}" = "yes" ]; then
echo "**building a static library for gmsh**"
echo " "
echo "** building a static library for gmsh **"
echo " "
mkdir lib
cd lib
cmake -DDEFAULT=0 \
@ -94,12 +96,17 @@ if [ "${BUILDSTATICLIB:-no}" = "yes" ]; then
-DENABLE_BLAS_LAPACK=1 \
-DENABLE_BUILD_LIB=1 \
-DENABLE_PRIVATE_API=1 \
-DENABLE_MED=OFF \
-DENABLE_CGNS=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_DOCDIR:PATH=/usr/share/gmsh \
..
make lib
make install/fast DESTDIR=$PKG/
cd ..
echo " "
echo "** finished building the static library **"
echo " "
fi
mkdir build
@ -113,8 +120,12 @@ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DENABLE_PRIVATE_API=1 \
-DENABLE_PETSC=OFF \
-DENABLE_SLEPC=OFF \
-DENABLE_MED=OFF \
-DENABLE_CGNS=OFF \
..
# only demos/ and tutorial/ folders will be left in the /usr/share/gmsh dir
# TODO: Solve runtime issues with HDF5 - this is the reason for disabling
# MED and CGNS in gmsh 4.12.1
make
make install DESTDIR=$PKG

View File

@ -1,10 +1,10 @@
PRGNAM="gmsh"
VERSION="4.11.1"
VERSION="4.12.1"
HOMEPAGE="https://gmsh.info/"
DOWNLOAD="https://gmsh.info/src/gmsh-4.11.1-source.tgz"
MD5SUM="681ccfa83213921884ede92a80191ba2"
DOWNLOAD="https://gmsh.info/src/gmsh-4.12.1-source.tgz"
MD5SUM="97b33a99f263dfba6d8df097098e090e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fltk lapack med OpenCASCADE"
REQUIRES="fltk lapack OpenCASCADE"
MAINTAINER="Fellype do Nascimento"
EMAIL="fellype (at) gmail (dot) com"