Skip to content
Permalink
Browse files

qgis3: introduce +proj4 and +proj5 (default) variants and make it usi…

…ng git master again in hope a bunch of bugs will be corrected in the master version
  • Loading branch information
Veence committed Apr 10, 2018
1 parent 69a33fc commit 6559ebbcf39a6d6b47142613ae8691054b53aeb4
Showing with 26 additions and 9 deletions.
  1. +26 −9 gis/qgis3/Portfile
@@ -7,10 +7,12 @@ PortGroup cxx11 1.1
PortGroup github 1.0
PortGroup qt5 1.0

github.setup qgis QGIS 3_0_1 final-
revision 2
github.setup qgis QGIS c625f95
#github.commit c625f95
revision 20180410
name qgis3
version [string map {_ .} ${github.version}]
version 3.0.1
#version [string map {_ .} ${github.version}]
categories gis
maintainers {vince @Veence}
description QGIS 3 is a user-friendly GIS based on Qt 5
@@ -24,9 +26,9 @@ license GPL-2+

homepage http://www.qgis.org/

checksums rmd160 d3330ae61dc17ff78f19f3c9b8887596091371eb \
sha256 c69b3ee709481c0a117aa70933b8c195733578a02da26243f0f9396e970450f5 \
size 111975589
checksums rmd160 cf33323c4a9e13724140b443a5a38162b1ded294 \
sha256 13c6368d8b0d10e95a564df7747bef445cc1f40ef19bd3ed2247615c5213402a \
size 110424411

depends_lib-append port:libiconv \
port:expat \
@@ -35,7 +37,6 @@ depends_lib-append port:libiconv \
path:lib/libssl.dylib:openssl \
port:gsl \
port:fcgi \
port:proj4 \
port:geos \
port:gdal \
port:sqlite3 \
@@ -187,6 +188,24 @@ set python_default "${python_default}} { default_variants +python36 }"

eval ${python_default}

# PROJ variants

variant proj4 description "Builds with proj4 4.x" {
depends_lib-append port:proj4
configure.args-append "-DPROJ_INCLUDE_DIR=${prefix}/lib/proj49/include"
configure.args-append "-DPROJ_LIBRARY=${prefix}/lib/proj49/lib/libproj.dylib"
}

variant proj5 description "Builds with proj4 5.x" {
depends_lib-append port:proj
configure.args-append "-DPROJ_INCLUDE_DIR=${prefix}/lib/proj5/include"
configure.args-append "-DPROJ_LIBRARY=${prefix}/lib/proj5/lib/libproj.dylib"
}

if {![variant_isset proj4] && ![variant_isset proj5]} {
default_variants +proj5
}

# Other variants

variant grass description "Build Grass 7 plugin" {
@@ -215,8 +234,6 @@ configure.args-append "-DGEOS_CONFIG=${prefix}/bin/geos-config"
configure.args-append "-DGEOS_INCLUDE_DIR=${prefix}/include"
configure.args-append "-DGEOS_LIBRARY=${prefix}/lib/libgeos_c.dylib"
configure.args-append "-DGSL_CONFIG=${prefix}/bin/gsl-config"
configure.args-append "-DPROJ_INCLUDE_DIR=${prefix}/lib/proj49/include"
configure.args-append "-DPROJ_LIBRARY=${prefix}/lib/proj49/lib/libproj.dylib"
configure.args-append "-DSPATIALITE_LIBRARY=${prefix}/lib/libspatialite.dylib"
configure.args-append "-DSPATIALITE_INCLUDE_DIR=${prefix}/include"
configure.args-append "-DSPATIALINDEX_LIBRARY=${prefix}/lib/libspatialindex.dylib"

0 comments on commit 6559ebb

Please sign in to comment.
You can’t perform that action at this time.