# -*- 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

PortSystem              1.0

name                    routino
version                 3.3.2
revision                0
categories              gis
platforms               darwin
maintainers             web.de:framic5 openmaintainer

description             Route planner for OpenStreetMap data
long_description        Routino is an application for finding a route between two points using the dataset of \
                        topographical information collected by http://www.OpenStreetMap.org. \
                        This router uses a routing algorithm that takes OSM format data as its input and \
                        calculates either the shortest or quickest route between two points. To optimise the \
                        routing a custom database format is used. This allows the routing to be performed \
                        quickly after a modest one-off pre-processing stage.
homepage                http://routino.org/
license                 GPL-3

master_sites            http://routino.org/download/
extract.suffix          .tgz

checksums               rmd160  d72b47a3742ca9647a2e983b3da00389ee3e536e \
                        sha256  4b7174d76955e058986d343635e0a184385f2756fa4ffc02eb5e2399921e9db1 \
                        size    2542029

patchfiles              patch-Makefile_conf.diff \
                        patch-src_Makefile_dylib_extension.diff

depends_lib             port:libzip \
                        port:bzip2

use_parallel_build      yes
use_configure           no

post-patch {
    reinplace -W ${worksrcpath} s|@PREFIX@|${prefix}|g Makefile.conf
}

variant universal {}

build.args-append   CC=${configure.cc} \
                    LD=${configure.cc} \
                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
