# -*- 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
PortGroup           github 1.0
PortGroup           cmake 1.1
PortGroup           boost 1.0

github.setup        systemed tilemaker 3.1.0 v
github.tarball_from archive
revision            0

categories          gis
license             FTWPL
maintainers         {@sikmir disroot.org:sikmir} openmaintainer

description         Make OpenStreetMap vector tiles without the stack
long_description    {*}${description}

installs_libs       no

checksums           rmd160  129d5b4efb6bd2e9f7e4150cf0cc4eda884c2e9d \
                    sha256  3b0b26aed96e12e9ebf50ea13878c4115aec6c0b4b5798eda41384449cb6c5d7 \
                    size    43826872

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append \
                    port:lua \
                    port:protobuf3-cpp \
                    port:rapidjson \
                    port:shapelib \
                    port:sqlite3 \
                    port:zlib

compiler.thread_local_storage \
                    yes
# https://github.com/systemed/tilemaker/issues/883
compiler.cxx_standard \
                    2017

post-destroot {
    set mandir ${destroot}${prefix}/share/man/man1
    xinstall ${worksrcpath}/docs/man/tilemaker.1 ${mandir}
}
