# -*- 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 84072 2011-09-16 05:50:16Z jmr@macports.org $

PortSystem              1.0

name                    libgeotiff
version                 1.3.0
categories              graphics
license                 X11
platforms               darwin
maintainers             nomaintainer
homepage                http://geotiff.osgeo.org/
master_sites            ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/

description             Library and tools for dealing with GeoTIFF

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

checksums           md5     6ac3c22e44711e9a3add9044e40b9527 \
                    sha1    b8cde5014cf82fe4683fa35fc81a5ea8d64b940f \
                    rmd160  845a2bba9b8b6204d86895f7580e3ae9f3b8ed67

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

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

configure.args          --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
