2006-04-16 02:04:44 +02:00
|
|
|
# New ports collection makefile for: gdal-grass
|
|
|
|
# Date created: Feb 2006
|
|
|
|
# Whom: Laurent Courty
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gdal-grass
|
2008-08-14 13:01:41 +02:00
|
|
|
PORTVERSION= 1.4.3
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 4
|
2006-04-16 02:04:44 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://www.gdal.org/dl/ \
|
|
|
|
ftp://ftp.remotesensing.org/gdal/ \
|
|
|
|
http://gdal.maptools.org/dl/
|
|
|
|
|
2008-08-14 13:01:41 +02:00
|
|
|
MAINTAINER= wenheping@gmail.com
|
2006-04-16 02:04:44 +02:00
|
|
|
COMMENT= GDAL drivers for GRASS raster and vector files
|
|
|
|
|
|
|
|
LIB_DEPENDS= gdal:${PORTSDIR}/graphics/gdal
|
2008-08-14 13:01:41 +02:00
|
|
|
BUILD_DEPENDS= grass>6:${PORTSDIR}/databases/grass
|
|
|
|
RUN_DEPENDS= grass>6:${PORTSDIR}/databases/grass
|
2006-04-16 02:04:44 +02:00
|
|
|
|
|
|
|
GRASS_INST_DIR= grass
|
2008-08-14 13:01:41 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2006-04-16 02:04:44 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-gdal=${LOCALBASE}/bin/gdal-config \
|
|
|
|
--with-grass=${LOCALBASE}/${GRASS_INST_DIR} \
|
|
|
|
--with-autoload=${GDAL_AUTOLOAD_DIR}
|
|
|
|
ALL_TARGET=
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/gdal
|
|
|
|
|
|
|
|
.if !defined(GDAL_AUTOLOAD_DIR)
|
|
|
|
GDAL_AUTOLOAD_DIR=${PREFIX}/lib/gdalplugins
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined (GRASS_INST_DIR)
|
|
|
|
GRASS_INST_DIR= grass
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|