2006-04-24 13:05:23 +00:00
|
|
|
# New ports collection makefile for: qgis
|
|
|
|
# Date created: Apr 2006
|
|
|
|
# Whom: Laurent Courty
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qgis
|
2009-08-13 20:46:13 +00:00
|
|
|
PORTVERSION= 1.0.2
|
2009-08-14 21:29:25 +00:00
|
|
|
PORTREVISION= 1
|
2007-07-22 19:53:52 +00:00
|
|
|
CATEGORIES= graphics geography
|
2008-12-20 20:51:04 +00:00
|
|
|
MASTER_SITES= http://download.osgeo.org/qgis/src/
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
2006-04-24 13:05:23 +00:00
|
|
|
|
2009-02-12 21:28:32 +00:00
|
|
|
MAINTAINER= wenheping@gmail.com
|
2007-08-16 00:05:53 +00:00
|
|
|
COMMENT= Geographical Information System (GIS) data viewer
|
2006-04-24 13:05:23 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= geos:${PORTSDIR}/graphics/geos \
|
|
|
|
proj:${PORTSDIR}/graphics/proj \
|
2009-01-12 20:37:24 +00:00
|
|
|
gsl.13:${PORTSDIR}/math/gsl \
|
2006-04-24 13:05:23 +00:00
|
|
|
gdal:${PORTSDIR}/graphics/gdal
|
|
|
|
|
2009-08-13 20:46:13 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2008-12-20 20:51:04 +00:00
|
|
|
USE_BISON= build
|
|
|
|
USE_CMAKE= yes
|
|
|
|
USE_QT_VER= 4
|
2006-04-24 13:05:23 +00:00
|
|
|
USE_SQLITE= yes
|
2008-12-20 20:51:04 +00:00
|
|
|
CMAKE_USE_PTHREAD= yes
|
|
|
|
CMAKE_ENV+= QMAKESPEC=${QMAKESPEC}
|
2009-05-24 14:36:36 +00:00
|
|
|
QT_COMPONENTS= gui svg xml network sql linguist_build \
|
|
|
|
qmake_build moc_build rcc_build uic_build
|
2006-04-24 13:05:23 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-qtdir=${QTDIR}
|
2007-08-16 00:05:53 +00:00
|
|
|
USE_LDCONFIG= yes
|
2006-04-24 13:05:23 +00:00
|
|
|
|
|
|
|
OPTIONS= GRASS "Enable GRASS support" Off \
|
|
|
|
POSTGIS "Enable PostGIS support" Off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined (QTDIR)
|
2007-02-13 00:16:29 +00:00
|
|
|
QTDIR= ${QT_PREFIX}
|
2006-04-24 13:05:23 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined (GRASS_INST_DIR)
|
|
|
|
GRASS_INST_DIR= grass
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GRASS)
|
|
|
|
CONFIGURE_ARGS+=--with-grass=${LOCALBASE}/${GRASS_INST_DIR}
|
2008-12-20 20:51:04 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/gdalplugins/gdal_GRASS.so:${PORTSDIR}/graphics/gdal-grass
|
2006-04-24 13:05:23 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_POSTGIS)
|
|
|
|
CONFIGURE_ARGS+=--with-postgresql
|
2008-12-20 20:51:04 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/share/postgis:${PORTSDIR}/databases/postgis
|
2006-04-24 13:05:23 +00:00
|
|
|
PLIST_SUB+= PGSQL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-postgresql
|
|
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|