# Created by: TAKATSU Tomonari <tota@FreeBSD.org>
# $FreeBSD: branches/RELENG_9_2_0/graphics/R-cran-rgdal/Makefile 321905 2013-06-27 21:30:13Z tota $

PORTNAME=	rgdal
DISTVERSION=	0.8-10
CATEGORIES=	graphics
DISTNAME=	${PORTNAME}_${DISTVERSION}

MAINTAINER=	tota@FreeBSD.org
COMMENT=	Bindings for the Geospatial Data Abstraction Library

LICENSE=	GPLv2 GPLv3
LICENSE_COMB=	dual

LIB_DEPENDS=	gdal:${PORTSDIR}/graphics/gdal \
		proj:${PORTSDIR}/graphics/proj
RUN_DEPENDS=	R-cran-sp>=1.0.9:${PORTSDIR}/math/R-cran-sp

USE_R_MOD=	yes
R_MOD_AUTOPLIST=	yes

R_POSTCMD_INSTALL_OPTIONS+=	--configure-args="--with-proj-lib=${LOCALBASE}/lib"

.include <bsd.port.mk>
