source: trunk/dports/databases/spatialite/Portfile @ 133789

Last change on this file since 133789 was 127113, checked in by vince@…, 5 years ago

Bump to 4.2.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
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# $Id: Portfile 127113 2014-10-21 13:56:51Z vince@macports.org $
3
4PortSystem          1.0
5
6name                spatialite
7version             4.2.0
8#revision            0
9categories          databases gis
10platforms           darwin
11license             {MPL-1.1 GPL-2+ LGPL-2.1+}
12
13maintainers         landonf openmaintainer
14
15description         Spatial extensions for SQLite 3
16
17long_description    SpatiaLite is a library for geographic information \
18                    systems (GIS) that implements the core OpenGIS \
19                    specification. It provides SQLite with basic support \
20                    for spatial data is intended for lightweight GIS \
21                    projects.
22
23homepage            https://www.gaia-gis.it/fossil/libspatialite/index
24master_sites        http://www.gaia-gis.it/gaia-sins/
25
26distname            libspatialite-${version}
27
28checksums           rmd160  db126a7f32d6c45080c77720681316305ab6722c \
29                    sha256  9f138a6854740c7827fdee53845eb1485fce3e805a7aa9fc9151f8046ebd312d
30
31depends_build       port:pkgconfig
32depends_lib         port:sqlite3 \
33                    port:geos \
34                    port:proj \
35                    port:libxml2
36
37configure.args-append \
38                    --enable-libxml2 \
39                    --disable-freexl \
40                    --with-proj-lib=${prefix}/lib \
41                    --with-proj-incl=${prefix}/include \
42                    --with-geos-lib=${prefix}/lib \
43                    --with-geos-incl=${prefix}/include
44
45post-configure {
46    ui_msg "Patching makefiles…"
47    set mkfiles [exec find ${worksrcpath} -name Makefile]
48    foreach file ${mkfiles} {
49        reinplace -E "s|^(AM_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file}
50        reinplace -E "s|^(gaiageo_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file}
51        reinplace -E "s|^(splite_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file}
52    }
53    ui_msg "Done"
54}
Note: See TracBrowser for help on using the repository browser.