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

go.setup            github.com/omniscale/imposm3 0.14.2 v
go.offline_build    no
name                imposm
revision            0
categories          gis
maintainers         {@sikmir disroot.org:sikmir} openmaintainer
license             Apache-2

description         Imposm imports OpenStreetMap data into PostGIS
long_description    {*}${description}
homepage            https://imposm.org/

checksums           rmd160  0ecc48fabdc81a9bc557235d3141e5b39cd64e34 \
                    sha256  dc779a274a7ec7e86ffdb97c881b6410f82a6d21924d08b9ed0785d2cf266113 \
                    size    2348921

depends_lib-append  port:geos \
                    port:leveldb

set go_ldflags      "-s -w -X ${go.package}.Version=${version}"
build.args          -ldflags \"${go_ldflags}\" ./cmd/imposm

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
