void-packages/srcpkgs/gmsh/template
2020-03-02 10:44:36 +01:00

47 lines
1.3 KiB
Bash

# Template file for 'gmsh'
pkgname=gmsh
version=4.5.4
revision=1
wrksrc="${pkgname}-${version}-source"
build_style=cmake
configure_args="-DENABLE_SYSTEM_CONTRIB=ON
-DENABLE_HXT=$(vopt_if hxt ON OFF)
-DENABLE_ZIPPER=$(vopt_if zipper ON OFF)
-DENABLE_NUMPY=$(vopt_if numpy ON OFF)"
makedepends="freetype-devel glu-devel gmp-devel
$(vopt_if fltk fltk-devel) blas-devel lapack-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"
changelog="http://gmsh.info/CHANGELOG.txt"
distfiles="https://gmsh.info/src/gmsh-${version}-source.tgz"
checksum=ccf8c74f43cbe3c371abe79862025d41642b3538a0148f018949494e3b3e2ecd
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" hdf5-devel"
fi
build_options="fltk hxt numpy zipper"
build_options_default="hxt"
case "$XBPS_TARGET_MACHINE" in
aarch64*|i686*|x86_64*|ppc64*) build_options_default+=" fltk";;
esac
desc_option_hxt="Enable HXT library"
desc_option_fltk="Enable FLTK GUI support"
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() {
archs=noarch
short_desc+=" - document and demo files"
pkg_install() {
vmove usr/share
}
}