New package: gmsh-4.1.0
This commit is contained in:
parent
ae990d7353
commit
609480add7
|
@ -0,0 +1 @@
|
||||||
|
gmsh
|
|
@ -0,0 +1,40 @@
|
||||||
|
# Template file for 'gmsh'
|
||||||
|
pkgname=gmsh
|
||||||
|
version=4.1.0
|
||||||
|
revision=1
|
||||||
|
wrksrc=${pkgname}-${version}-source
|
||||||
|
build_style=cmake
|
||||||
|
configure_args="-DENABLE_NUMPY=$(vopt_if numpy ON OFF)
|
||||||
|
-DENABLE_ZIPPER=$(vopt_if zipper ON OFF)
|
||||||
|
-DENABLE_HXT=$(vopt_if hxt ON OFF)"
|
||||||
|
hostmakedepends="gcc-fortran blas-devel lapack-devel SDL2-devel
|
||||||
|
$(vopt_if mesh 'hdf5-devel fltk-devel') gmp-devel"
|
||||||
|
depends="python blas-devel lapack-devel SDL2-devel
|
||||||
|
$(vopt_if mesh 'hdf5-devel fltk-devel') gmp-devel"
|
||||||
|
short_desc="Three-dimensional finite element mesh generator"
|
||||||
|
maintainer="Nathan Owens <ndowens04@gmail.com>"
|
||||||
|
license="GPL-2.0-or-later"
|
||||||
|
homepage="https://gmsh.info"
|
||||||
|
distfiles="https://gmsh.info/src/gmsh-${version}-source.tgz"
|
||||||
|
checksum=35c603770bd051197fecb1e8ea579bcc80b913086a8e95e154915548b499a34c
|
||||||
|
|
||||||
|
build_options="hxt mesh numpy zipper"
|
||||||
|
# HXT and MESH only available on x86
|
||||||
|
case "${XBPS_TARGET_MACHINE}" in
|
||||||
|
i686|x86_64) build_options_default="hxt mesh";;
|
||||||
|
esac
|
||||||
|
desc_option_hxt="Enable HXT library"
|
||||||
|
desc_option_mesh="Enable mesh support (Required for GUI)"
|
||||||
|
desc_option_numpy="Enable fullMatrix and numpy array conversion"
|
||||||
|
desc_option_zipper="Enable zip file compression/decompression"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
rm -rf builddir/gmsh-$version-source/api
|
||||||
|
}
|
||||||
|
|
||||||
|
gmsh-doc_package() {
|
||||||
|
short_desc+=" - document and demo files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/share
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue