void-packages/srcpkgs/gmsh/template

43 lines
1.4 KiB
Bash
Raw Normal View History

2019-01-07 03:22:48 +01:00
# Template file for 'gmsh'
pkgname=gmsh
2019-02-16 09:38:27 +01:00
version=4.1.5
2019-01-07 03:22:48 +01:00
revision=1
2019-02-16 09:38:27 +01:00
wrksrc="${pkgname}-${version}-source"
2019-01-07 03:22:48 +01:00
build_style=cmake
configure_args="-DENABLE_NUMPY=$(vopt_if numpy ON OFF)
2019-02-16 09:38:27 +01:00
-DENABLE_ZIPPER=$(vopt_if zipper ON OFF) -DENABLE_HXT=$(vopt_if hxt ON OFF)"
2019-01-07 03:22:48 +01:00
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"
2019-01-24 14:07:20 +01:00
changelog="http://gmsh.info/CHANGELOG.txt"
2019-01-07 03:22:48 +01:00
distfiles="https://gmsh.info/src/gmsh-${version}-source.tgz"
2019-02-16 09:38:27 +01:00
checksum=654d38203f76035a281006b77dcb838987a44fd549287f11c53a1e9cdf598f46
2019-01-07 03:22:48 +01:00
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
2019-02-16 09:38:27 +01:00
2019-01-07 03:22:48 +01:00
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() {
2019-02-16 09:38:27 +01:00
archs=noarch
2019-01-07 03:22:48 +01:00
short_desc+=" - document and demo files"
pkg_install() {
vmove usr/share
}
}