# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           octave 1.0

octave.setup        octproj 3.0.2
revision            1
platforms           darwin
license             GPL-2+
maintainers         {mps @Schamschula} openmaintainer
description         This package allows to call functions of PROJ.4 library for \
                    cartographic projections transformations.
long_description    {*}${description}
master_sites        https://bitbucket.org/jgpallero/octproj/downloads/

checksums           rmd160  1dec59736670720607c8c79c8d6a24565985393c \
                    sha256  1b60239ede0a19aabd85d5c72c72fee9df6519bf37c2430766ab303628f04b3b \
                    size    9500328

depends_lib-append  port:proj8

patchfiles-append   patch-src-Makefile.diff

post-patch {
    reinplace "s|%PREFIX%|${prefix}|" ${worksrcpath}/src/Makefile
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     octproj-(\[0-9a-z.\]+)${extract.suffix}
