# $NetBSD: Makefile,v 1.20 2025/02/19 12:53:21 mef Exp $

R_PKGNAME=	gstat
R_PKGVER=	2.1-3

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Spatial & spatio-temporal modelling, prediction and simulation
LICENSE=	gnu-gpl-v2 OR gnu-gpl-v3

DEPENDS+=	R-FNN>=1.1.3:../../math/R-FNN
DEPENDS+=	R-sp>=0.9.98:../../math/R-sp
DEPENDS+=	R-spacetime>=1.0.0:../../math/R-spacetime
DEPENDS+=	R-zoo>=1.8.3:../../math/R-zoo
DEPENDS+=	R-sf-[0-9]*:../../geography/R-sf
DEPENDS+=	R-sftime-[0-9]*:../../time/R-sftime
DEPENDS+=	R-stars-[0-9]*:../../geography/R-stars

# Packages suggested but not available: 'fields', 'future', 'future.apply'

TEST_DEPENDS+=	R-RColorBrewer-[0-9]*:../../math/R-RColorBrewer
#EST_DEPENDS+=	R-future-[0-9]*:../../wip/R-future
TEST_DEPENDS+=	R-geoR-[0-9]*:../../math/R-geoR
TEST_DEPENDS+=	R-ggplot2-[0-9]*:../../graphics/R-ggplot2
TEST_DEPENDS+=	R-mapdata-[0-9]*:../../geography/R-mapdata
TEST_DEPENDS+=	R-maps-[0-9]*:../../geography/R-maps
TEST_DEPENDS+=	R-raster-[0-9]*:../../geography/R-raster
TEST_DEPENDS+=	R-sf-[0-9]*:../../geography/R-sf
TEST_DEPENDS+=	R-stars-[0-9]*:../../geography/R-stars

USE_LANGUAGES+=	c fortran

.include "../../math/R/Makefile.extension"
.include "../../mk/blas.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
