# -*- 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.2.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  7381efd8539506e0765ef7e01c50433b9209f9ec \
                    sha256  7f8a49412e6e0fbe8d9230ccf8ec8a9be442c9d765d4bd6a63465ca82c087f75 \
                    size    43860516

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}
}
