source: trunk/dports/gis/pgrouting/Portfile

Last change on this file was 127803, checked in by vince@…, 3 years ago

Minor tweak to avoid conflict with Postgresql93 headers.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 127803 2014-11-04 13:17:45Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake   1.0
6PortGroup           github  1.0
7
8categories          gis
9maintainers         vince
10description         Routing algorithms for PostgreSQL/PostGIS
11long_description    pgRouting is a PostGreSQL/PostGIS extension\
12                    that contains a variety of algorithms to solve\
13                    traditional network problems such as finding\
14                    shortest paths or the Traveling Sales Person (TSP).
15
16platforms           darwin
17license             LGPL-2
18
19homepage            http://www.pgrouting.org/
20
21# https://github.com/pgRouting/pgrouting/archive/v2.0.0.tar.gz
22github.setup        pgRouting pgrouting 2.0.0 v
23revision            2
24
25patchfiles          patch-unistd_h.diff
26
27checksums           rmd160  c2eacfb36fc977f63cb52c8e171936a08ed78dcb \
28                    sha256  0f918e1938570e59f309dc7d8fe16de8c0edcb52cc870bdd60b144c4bb51c777
29
30depends_lib-append  port:cgal\
31                    port:postgis2
32
33# Variants
34variant postgresql92 conflicts postgresql93 description {Use postgresql92} {
35    depends_lib-append      port:postgresql92
36    configure.args-append   -DPOSTGRESQL_PG_CONFIG=${prefix}/lib/postgresql92/bin/pg_config
37    configure.args-append   -DPOSTGRESQL_EXECUTABLE=${prefix}/lib/postgresql92/bin/postgres
38}
39
40variant postgresql93 conflicts postgresql92 description {Use postgresql93} {
41    depends_lib-append      port:postgresql93
42    configure.args-append   -DPOSTGRESQL_PG_CONFIG=${prefix}/lib/postgresql93/bin/pg_config
43    configure.args-append   -DPOSTGRESQL_EXECUTABLE=${prefix}/lib/postgresql93/bin/postgres
44}
45
46variant doc description {install documentation} {
47    depends_lib-append      port:sphinx
48    configure.args-append   -DWITH_DOC=YES
49}
50
51if {![variant_isset postgresql92] && ![variant_isset postgresql93]} {
52    default_variants    +postgresql93
53}
54
55post-extract {
56    reinplace -E \
57        "s|-fno-delete-null-pointer-checks||" \
58        ${worksrcpath}/src/apsp_johnson/src/CMakeLists.txt
59
60    reinplace -E \
61        "s|-fno-delete-null-pointer-checks||" \
62        ${worksrcpath}/src/apsp_warshall/src/CMakeLists.txt
63}
Note: See TracBrowser for help on using the repository browser.