# -*- 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 80169 2011-07-05 20:09:18Z jeremyhu@macports.org $

PortSystem          1.0

name                lensfun
version             0.2.5
revision            1
categories          graphics
platforms           darwin
maintainers         gmail.com:julians37
license             GPL-3 LGPL-3

description         Library for fixing lens geometry distortion

long_description    Provides a database of photographic lenses and a library \
                    that allows advanced access to the database including \
                    functions to correct images based on intimate knowledge \
                    of lens characteristics and calibration data.

homepage            http://lensfun.berlios.de/
master_sites        http://download.berlios.de/lensfun/

checksums           sha1    0ed0ceccd8ea0fe19b942682a9e71b0bf08c9336 \
                    rmd160  d2d2c45eddc03e50e9425125e283b236c976b5d2

depends_build       port:pkgconfig

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2

# Ensure lensfun.pc is created
patchfiles          patch-pkgconfig.diff \
                    patch-build-tibs-target-mac-mak.diff

platform powerpc {
        configure.args    --target=mac.powerpc.powerpc \
                          --vectorization=''
}

configure.universal_args-delete --disable-dependency-tracking

livecheck.type      regex
livecheck.url       http://developer.berlios.de/project/showfiles.php?group_id=9034
livecheck.regex     "lensfun-(\\d+(?:\\.\\d+)*).tar"
