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$ |
---|
3 | PortSystem 1.0 |
---|
4 | name osm2pgsql |
---|
5 | distname osm2pgsql |
---|
6 | version 0.69-svn23667 |
---|
7 | categories gis |
---|
8 | |
---|
9 | description osm2pgsql is a utility that converts OpenStreetMap (.OSM) data into PostGreSQL format. |
---|
10 | long_description osm2pgsql is a utility program that converts OpenStreetMap (.OSM) data into a format \ |
---|
11 | that can be loaded into PostgreSQL. |
---|
12 | |
---|
13 | homepage http://wiki.openstreetmap.org/wiki/Osm2pgsql |
---|
14 | platforms darwin |
---|
15 | |
---|
16 | fetch.type svn |
---|
17 | svn.url http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/ |
---|
18 | svn.revision 23667 |
---|
19 | |
---|
20 | depends_lib port:libxml2 \ |
---|
21 | port:geos \ |
---|
22 | port:bzip2 \ |
---|
23 | port:zlib \ |
---|
24 | port:postgis |
---|
25 | |
---|
26 | if { ![variant_isset postgresql84] && ![variant_isset postgresql91] } { |
---|
27 | default_variants +postgresql91 |
---|
28 | } |
---|
29 | |
---|
30 | variant postgresql84 conflicts postgresql91 \ |
---|
31 | description {Use PostgreSQL version 8.4} { |
---|
32 | depends_lib-append port:postgresql84 |
---|
33 | pre-build { |
---|
34 | reinplace "s|shell pg_config|shell /opt/local/lib/postgresql84/bin/pg_config|" ${worksrcpath}/Makefile |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | variant postgresql91 conflicts postgresql84 \ |
---|
39 | description {Use PostgreSQL version 9.1} { |
---|
40 | depends_lib-append port:postgresql91 |
---|
41 | pre-build { |
---|
42 | reinplace "s|shell pg_config|shell /opt/local/lib/postgresql91/bin/pg_config|" ${worksrcpath}/Makefile |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | pre-configure { |
---|
47 | system "cd ${worksrcpath}; ./autogen.sh" |
---|
48 | } |
---|
49 | |
---|
50 | |
---|