# -*- 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
# $Id: Portfile 102865 2013-02-09 19:16:59Z jeremyhu@macports.org $

PortSystem          1.0

name                libgeotiff
version             1.4.0
revision            2
categories          graphics
license             X11
platforms           darwin

maintainers         stromnov openmaintainer

description         Library and tools for dealing with GeoTIFF

long_description    This software provides support for the Tag Image File \
                    Format (TIFF) Geo extensions.

homepage            http://geotiff.osgeo.org/
master_sites        ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/

checksums           rmd160  e665d077303961454cb0663af564942b5b808a49 \
                    sha256  d0acb8d341fd6a8f2c673456e09fdb8f50f91e3166ac934719fe05b30d328329

depends_lib         port:tiff port:proj port:zlib port:jpeg

post-patch {
    reinplace "s|epsg_csv|${name}/epsg_csv|" ${worksrcpath}/Makefile.in
}

configure.args-append   \
                    --with-zip=${prefix} \
                    --with-jpeg=${prefix} \
                    --with-proj=${prefix} \
                    --enable-incode-epsg

use_parallel_build  no

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
