Skip to content
Permalink
Browse files

spatialite: add a +proj4 variant

  • Loading branch information
Veence committed Apr 10, 2018
1 parent edae202 commit 0cf734e2a35e25d479047890a8d0fdce828ff768
Showing with 14 additions and 4 deletions.
  1. +14 −4 databases/spatialite/Portfile
@@ -4,7 +4,7 @@ PortSystem 1.0

name spatialite
version 4.3.0
revision 3
revision 4
categories databases gis
platforms darwin
license {MPL-1.1 GPL-2+ LGPL-2.1+}
@@ -30,15 +30,25 @@ checksums rmd160 ee8d9f3f69f1c70f041b418e0e51a05ec40a5be7 \
depends_build port:pkgconfig
depends_lib port:sqlite3 \
port:geos \
port:proj4 \
port:libxml2

configure.args-append \
--enable-libxml2 \
--disable-freexl

configure.cppflags-append -I${prefix}/lib/proj49/include
configure.ldflags-append -L${prefix}/lib/proj49/lib
# Select proj version
variant proj49 description {links with proj4 4.9 instead of 5+} {

depends_lib-append port:proj4
configure.cppflags-append -I${prefix}/lib/proj49/include
configure.ldflags-append -L${prefix}/lib/proj49/lib
}

if {![variant_isset proj49]} {
depends_lib-append port:proj
configure.cppflags-append -I${prefix}/lib/proj5/include
configure.ldflags-append -L${prefix}/lib/proj5/lib
}

post-configure {
fs-traverse file ${worksrcpath} {

0 comments on commit 0cf734e

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