Commits
Veence authored 0cf734e2a35
1 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
2 2 | |
3 3 | PortSystem 1.0 |
4 4 | |
5 5 | name spatialite |
6 6 | version 4.3.0 |
7 - | revision 3 |
7 + | revision 4 |
8 8 | categories databases gis |
9 9 | platforms darwin |
10 10 | license {MPL-1.1 GPL-2+ LGPL-2.1+} |
11 11 | |
12 12 | maintainers nomaintainer |
13 13 | |
14 14 | description Spatial extensions for SQLite 3 |
15 15 | |
16 16 | long_description SpatiaLite is a library for geographic information \ |
17 17 | systems (GIS) that implements the core OpenGIS \ |
23 23 | master_sites http://www.gaia-gis.it/gaia-sins/ |
24 24 | |
25 25 | distname libspatialite-${version}a |
26 26 | |
27 27 | checksums rmd160 ee8d9f3f69f1c70f041b418e0e51a05ec40a5be7 \ |
28 28 | sha256 88900030a4762904a7880273f292e5e8ca6b15b7c6c3fb88ffa9e67ee8a5a499 |
29 29 | |
30 30 | depends_build port:pkgconfig |
31 31 | depends_lib port:sqlite3 \ |
32 32 | port:geos \ |
33 - | port:proj4 \ |
34 33 | port:libxml2 |
35 34 | |
36 35 | configure.args-append \ |
37 36 | --enable-libxml2 \ |
38 37 | --disable-freexl |
39 38 | |
40 - | configure.cppflags-append -I${prefix}/lib/proj49/include |
41 - | configure.ldflags-append -L${prefix}/lib/proj49/lib |
39 + | # Select proj version |
40 + | variant proj49 description {links with proj4 4.9 instead of 5+} { |
41 + | |
42 + | depends_lib-append port:proj4 |
43 + | configure.cppflags-append -I${prefix}/lib/proj49/include |
44 + | configure.ldflags-append -L${prefix}/lib/proj49/lib |
45 + | } |
46 + | |
47 + | if {![variant_isset proj49]} { |
48 + | depends_lib-append port:proj |
49 + | configure.cppflags-append -I${prefix}/lib/proj5/include |
50 + | configure.ldflags-append -L${prefix}/lib/proj5/lib |
51 + | } |
42 52 | |
43 53 | post-configure { |
44 54 | fs-traverse file ${worksrcpath} { |
45 55 | if {[file tail ${file}] eq "Makefile"} { |
46 56 | reinplace -q -E "s|^(AM_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} |
47 57 | reinplace -q -E "s|^(gaiageo_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} |
48 58 | reinplace -q -E "s|^(splite_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} |
49 59 | } |
50 60 | } |
51 61 | } |