227c8e35fd
This package contains standalone drivers for GRASS raster and vector files that can be built after GDAL has been built and installed as an "autoload" driver. This is particularly useful in resolving problems with GRASS depending on GDAL, but GDAL with GRASS support depending on GRASS. With this package you can configure and install GDAL normally (--without-grass), then build and install GRASS normally and finally build and install this driver.
31 lines
671 B
Makefile
31 lines
671 B
Makefile
PORTNAME= gdal-grass
|
|
PORTVERSION= 1.0.2
|
|
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.2<8.3: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}/grass82
|
|
GNU_CONFIGURE= yes
|
|
|
|
PLIST_FILES= lib/gdalplugins/gdal_GRASS.so \
|
|
lib/gdalplugins/ogr_GRASS.so
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= OSGeo
|
|
|
|
.include <bsd.port.mk>
|