source: trunk/dports/databases/spatialite/Portfile

Last change on this file was 142731, checked in by vince@…, 20 months ago

spatialite: bump to 4.3.0a

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