Skip to content

Commit

Permalink
postgis2: step up to 2.4.4 and create +proj4 variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Veence committed Apr 10, 2018
1 parent 86585b7 commit edae202
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions databases/postgis2/Portfile
Expand Up @@ -5,9 +5,9 @@ PortSystem 1.0
name postgis2
categories databases gis
license GPL-2+
version 2.4.3
version 2.4.4
epoch 1
revision 2
revision 0
platforms darwin
maintainers vince openmaintainer

Expand All @@ -24,16 +24,16 @@ homepage http://postgis.refractions.net/
master_sites http://download.osgeo.org/postgis/source
distname postgis-${version}

checksums rmd160 0c0d4ca47a9a0cddfdc3127558d19a5a193d8c68 \
sha256 ea5374c5db6b645ba5628ddcb08f71d3b3d90a464d366b4e1d20d5a268bde4b9
checksums rmd160 f9d5274a25b9e9e05a6f25343c9185bcd1fa4b3a \
sha256 0663efb589210d5048d95c817e5cf29552ec8180e16d4c6ef56c94255faca8c2

depends_build port:autoconf \
port:automake \
port:libtool \
port:libxslt

depends_lib port:geos\
port:proj4\
port:proj\
port:libiconv\
port:libxml2\
port:json-c
Expand Down Expand Up @@ -105,6 +105,15 @@ variant gui description {Build the GUI import tool} {
configure.args-append --with-gui
}

configure.args-append --with-projdir=${prefix}/lib/proj5

variant proj4 description {Builds with PROJ4 4.9 instead of PROJ4 5+} {
depends_lib-delete port:proj
depends_lib-append port:proj4
configure.args-delete --with-projdir=${prefix}/lib/proj5
configure.args-append --with-projdir=${prefix}/lib/proj49
}

variant comments description {Build comments -- ! broken } {

ui_warn "The comments variant is currently broken. Use at your own risk."
Expand All @@ -131,7 +140,6 @@ configure.cflags-append \

# see https://trac.macports.org/wiki/UsingTheRightCompiler
configure.env-append CPPBIN=${configure.cpp}
configure.args-append --with-projdir=${prefix}/lib/proj49

post-configure {
if {[variant_isset universal]} {
Expand Down

0 comments on commit edae202

Please sign in to comment.