source: trunk/dports/gis/pgrouting/Portfile @ 119603

Last change on this file since 119603 was 119603, checked in by ryandesign@…, 5 years ago

set svn:eol-style to native

  • Property svn:eol-style set to native
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:$
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            1
24
25checksums           rmd160  c2eacfb36fc977f63cb52c8e171936a08ed78dcb \
26                    sha256  0f918e1938570e59f309dc7d8fe16de8c0edcb52cc870bdd60b144c4bb51c777
27
28depends_lib-append  port:cgal\
29                    port:postgis2
30
31# Variants
32variant postgresql92 conflicts postgresql93 description {Use postgresql92} {
33    depends_lib-append      port:postgresql92
34    configure.args-append   -DPOSTGRESQL_PG_CONFIG=${prefix}/lib/postgresql92/bin/pg_config
35    configure.args-append   -DPOSTGRESQL_EXECUTABLE=${prefix}/lib/postgresql92/bin/postgres
36}
37
38variant postgresql93 conflicts postgresql92 description {Use postgresql93} {
39    depends_lib-append      port:postgresql93
40    configure.args-append   -DPOSTGRESQL_PG_CONFIG=${prefix}/lib/postgresql93/bin/pg_config
41    configure.args-append   -DPOSTGRESQL_EXECUTABLE=${prefix}/lib/postgresql93/bin/postgres
42}
43
44variant doc description {install documentation} {
45    depends_lib-append      port:sphinx
46    configure.args-append   -DWITH_DOC=YES
47}
48
49if {![variant_isset postgresql92] && ![variant_isset postgresql93]} {
50    default_variants    +postgresql93
51}
52
53post-extract {
54    reinplace -E \
55        "s|-fno-delete-null-pointer-checks||" \
56        ${worksrcpath}/src/apsp_johnson/src/CMakeLists.txt
57
58    reinplace -E \
59        "s|-fno-delete-null-pointer-checks||" \
60        ${worksrcpath}/src/apsp_warshall/src/CMakeLists.txt
61}
Note: See TracBrowser for help on using the repository browser.