openbsd-ports/geo/qgis/Makefile
landry ed3bb203cc Update to qgis 3.8.0, compatible with proj 6.
Enforce py-sip>=4.19.4 requirement for c++11 scoped enums.
Backport https://github.com/qgis/QGIS/pull/30336 to fix issues with proj 6.
2019-07-03 09:45:05 +00:00

114 lines
3.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.107 2019/07/03 09:45:05 landry Exp $
COMMENT = desktop geographical information system
DISTNAME = qgis-3.8.0
EXTRACT_SUFX = .tar.bz2
CATEGORIES = geo x11
SHARED_LIBS = qgis_core 33.0 \
qgis_app 17.0 \
qgis_gui 25.0 \
qgis_analysis 13.0 \
qgis_server 11.0 \
qgispython 6.0 \
qgis_3d 5.0 \
qgis_native 0.3
HOMEPAGE = http://www.qgis.org/
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
MAINTAINER = Landry Breuil <landry@openbsd.org>
MASTER_SITES = ${HOMEPAGE}/downloads/
MODULES = devel/cmake \
x11/qt5 \
lang/python
COMPILER = base-clang ports-gcc
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
BUILD_DEPENDS = x11/py-qt5${MODPY_FLAVOR} \
devel/py-sip${MODPY_FLAVOR}>=4.19.4 \
geo/gdal,-python${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR} \
editors/py-qscintilla,qt5 \
devel/bison>=2.4
RUN_DEPENDS = x11/py-qt5${MODPY_FLAVOR} \
geo/gdal,-python${MODPY_FLAVOR} \
geo/py-owslib${MODPY_FLAVOR} \
databases/py-psycopg2${MODPY_FLAVOR} \
textproc/py-yaml${MODPY_FLAVOR} \
textproc/py-pygments${MODPY_FLAVOR} \
www/py-jinja2${MODPY_FLAVOR} \
www/py-requests${MODPY_FLAVOR} \
editors/py-qscintilla,qt5 \
devel/desktop-file-utils \
x11/gtk+3,-guic \
misc/shared-mime-info
LIB_DEPENDS = ${MODPY_LIB_DEPENDS} \
archivers/libzip \
databases/sqlite3 \
devel/proj \
editors/qscintilla,qt5 \
security/qtkeychain,qt5 \
security/qca-qt5 \
www/fcgi \
x11/qt5/qtwebkit \
x11/qt5/qt3d \
qwt-*-qt5:x11/qwt,qt5 \
geo/gdal \
geo/mdal \
geo/geos \
geo/spatialite/libspatialite \
geo/spatialindex \
graphics/exiv2 \
devel/gsl \
databases/postgresql
WANTLIB += ${COMPILER_LIBCXX} Qt5Concurrent Qt5Core Qt5Gui Qt5Network
WANTLIB += Qt5Positioning Qt5PrintSupport Qt5Sql Qt5Svg
WANTLIB += Qt5Test Qt5WebKit Qt5WebKitWidgets Qt5Widgets Qt5Xml
WANTLIB += c exiv2 expat fcgi gdal geos_c gsl gslcblas m mdal pq proj ${MODPY_WANTLIB}
WANTLIB += qca-qt5 qscintilla2_qt5 qt5keychain qwt-qt5 spatialindex
WANTLIB += spatialite sqlite3 util zip hdf5 xml2 z
WANTLIB += Qt53DCore Qt53DExtras Qt53DInput Qt53DLogic
WANTLIB += Qt53DRender Qt5Gamepad
WANTLIB += Qt5DBus Qt5Qml Qt5Quick Qt5QuickWidgets Qt5SerialPort
CONFIGURE_ENV+= VERBOSE=1
CONFIGURE_ARGS =-DPYTHON_EXECUTABLE=${MODPY_BIN} \
-DPYUIC_PROGRAM=${LOCALBASE}/bin/pyuic5-3 \
-DPYRCC_PROGRAM=${LOCALBASE}/bin/pyrcc5-3 \
-DWITH_INTERNAL_MDAL=FALSE \
-DWITH_3D=TRUE \
-DWITH_SERVER=TRUE -DWITH_SERVER_PLUGINS=TRUE -DWITH_QSPATIALITE=TRUE
#CONFIGURE_ARGS += -DCMAKE_BUILD_TYPE:String=RelWithDebInfo
# https://issues.qgis.org/issues/17696
#.ifdef "${BUILD_OSG}"
#LIB_DEPENDS += geo/osgearth
#CONFIGURE_ARGS += -DWITH_GLOBE=TRUE
#WANTLIB += OpenThreads osgEarthAnnotation osgEarthFeatures osgEarthQt5 osgEarthSymbology
#WANTLIB += osgEarthUtil osgGA osgQt osgUtil osgViewer osg osgDB osgEarth
#.endif
pre-configure:
# otherwise takes precedence over systemwide file
rm -f ${WRKSRC}/cmake/FindIconv.cmake
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/mime/packages
${INSTALL_DATA} ${WRKSRC}/debian/qgis.xml \
${PREFIX}/share/mime/packages/qgis.xml
.include <bsd.port.mk>