summaryrefslogtreecommitdiff
path: root/graphics/gdal-grass/Makefile
blob: c46a53b7fb40156eafcf30daff1ead244abc5610 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PORTNAME=	gdal-grass
PORTVERSION=	1.0.3
PORTREVISION=	2
PORTEPOCH=	1
CATEGORIES=	graphics

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Standalone GRASS Drivers for GDAL and OGR
WWW=		https://github.com/OSGeo/gdal-grass

LICENSE=	MIT

BUILD_DEPENDS=	grass8>=8.4<8.5:databases/grass8
LIB_DEPENDS=	libgdal.so:graphics/gdal \
		libgrass_gis.so:databases/grass8

USES=		gmake

ALL_TARGET=	default
CFLAGS+=	-fPIC
CONFIGURE_ARGS=	--with-autoload=${PREFIX}/lib/gdalplugins \
		--with-gdal=${LOCALBASE}/bin/gdal-config \
		--with-grass=${LOCALBASE}/grass84
GNU_CONFIGURE=	yes

PLIST_FILES=	lib/gdalplugins/gdal_GRASS.so \
		lib/gdalplugins/ogr_GRASS.so

USE_GITHUB=	yes
GH_ACCOUNT=	OSGeo

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gdalplugins/*.so

.include <bsd.port.mk>