openbsd-ports/geo/qgis/Makefile
2010-05-11 06:41:30 +00:00

65 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2010/05/11 06:41:30 dcoppa Exp $
COMMENT = desktop geographical information system
DISTNAME = qgis_1.4.0
PKGNAME = ${DISTNAME:L:S/_/-/}p2
CATEGORIES = geo x11
SHARED_LIBS = qgis_core 2.0 \
qgis_gui 1.1 \
qgis_analysis 1.0 \
qgispython 0.1 # .1.3
HOMEPAGE = http://www.qgis.org/
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MAINTAINER = Landry Breuil <gaston@gcu.info>
MASTER_SITES = http://download.osgeo.org/qgis/src/
WRKDIST = ${WRKDIR}/${DISTNAME:S/_/-/}
MODULES = devel/cmake \
devel/gettext \
lang/python
BUILD_DEPENDS = ::x11/py-qt4 \
:py-gdal-*:geo/gdal,-python \
::devel/bison
RUN_DEPENDS = ::x11/py-qt4 \
:py-gdal-*:geo/gdal,-python \
:desktop-file-utils-*:devel/desktop-file-utils
LIB_DEPENDS = ${MODPY_LIB_DEPENDS} \
proj::devel/proj \
QtGui,QtNetwork,QtXml,QtSql,QtCore,QtSvg::x11/qt4 \
gdal::geo/gdal \
geos_c::geo/geos \
gsl::devel/gsl \
pq:postgresql-client-*:databases/postgresql
WANTLIB += ICE SM X11 Xext Xi Xinerama Xrender c expat fontconfig \
freetype glib-2.0 gthread-2.0 m png pthread gobject-2.0 util \
stdc++ z
CONFIGURE_ENV+= VERBOSE=1
pre-configure:
${SUBST_CMD} ${WRKSRC}/cmake/Find{GDAL,GEOS,Postgres}.cmake
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/{pixmaps,applications}
ln ${PREFIX}/share/{qgis/images/icons,pixmaps}/qgis-icon.png
${SUBST_CMD} -c ${WRKSRC}/debian/qgis.desktop \
${PREFIX}/share/applications/qgis.desktop
chown ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/share/applications/qgis.desktop
.include <bsd.port.mk>