# Template file for 'grass' pkgname=grass version=8.3.0 revision=1 _binversion=${version//./} _binversion=${_binversion:0:2} build_style=gnu-configure configure_args="--prefix=/usr/ --bindir=/usr/bin --libdir=/usr/lib --libexec=/usr/libexec --with-cxx --with-sqlite --with-geos --with-gdal --with-cairo --with-freetype --with-freetype-includes=${XBPS_CROSS_BASE}/usr/include/freetype2 --enable-largefile --with-postgres --enable-shared --with-proj-share=/usr/share --with-nls --with-readline --with-blas --with-blas-includes=/usr/include/ --with-lapack --with-lapack-includes=/usr/include/ --with-netcdf=/usr/bin/nc-config --with-openmp=yes --with-pthread=yes --with-postgres=no" # --with-postgres-includes=/usr/include/postgresql # --with-postgres-libs=/usr/lib/postgresql" hostmakedepends="flex pkg-config libgdal-tools python3-numpy python3-six tar" makedepends="zlib-devel cairo-devel fftw-devel freetype-devel libgdal-devel bison bzip2-devel proj-devel libzstd-devel tiff-devel readline-devel netcdf-devel libomp-devel blas-devel lapack-devel glu-devel libpng-devel sqlite-devel geos-devel libpdal libxml2-devel libgomp-devel python3-six gettext python3-Pillow" # postgresql postgresql-libs postgresql-libs-devel depends="python3-numpy python3-dateutil python3-Pillow python3-matplotlib python3-six python3-ply python3-termcolor wxPython4" short_desc="Geographic Resources Analysis Support System" maintainer="Alex Jarosch " license="GPL-2.0-or-later" homepage="https://grass.osgeo.org/" distfiles="https://github.com/OSGeo/grass/archive/${version}.tar.gz" checksum=8a38d297a41316ec0af1e4b4f8d00738f1fd98be768b8c6001b00e88817a2764 python_version=3 nocross=yes post_install() { # Pc file installation used by pkg-config vinstall grass.pc 0644 usr/share/pkgconfig # Desktop entry vinstall gui/icons/grass.desktop 644 usr/share/applications }