# -*- 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 87230 2011-11-14 15:26:46Z devans@macports.org $

PortSystem       1.0

name             ufraw
version          0.18
revision         1
license          GPL-2+
categories       graphics
maintainers      devans openmaintainer
description      Unidentified Flying Raw (UFRaw)

long_description \
    The Unidentified Flying Raw (UFRaw) is a utility to read and \
    manipulate raw images from digital cameras. It can be used on \
    its own or as a Gimp plug-in. It reads raw images using Dave Coffin's \
    raw conversion utility - DCRaw. UFRaw supports basic color management \
    using Little CMS, allowing the user to apply color profiles.

homepage         http://ufraw.sourceforge.net
platforms        darwin
master_sites     sourceforge

checksums        sha1    41c9ad7aa7f1cbb63a6b0b330b3599b18a7e8cd2 \
                 rmd160  faeb20a5c5eeba2ba91d5737efaa019c5f223c8e

depends_build    port:pkgconfig
depends_lib      port:dcraw \
                 path:lib/pkgconfig/gimpui-2.0.pc:gimp2 \
                 port:exiv2 \
                 port:gtkimageview \
                 port:cfitsio \
                 port:lensfun

# gimp2 is not universal
universal_variant no

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        COPYING \
        MANIFEST \
        README \
        TODO \
        ${docdir}
}

# This looks like a bug in llvm-gcc-4.2 compilation being incompatible with llvm-g++-4.2 linking
#   Undefined symbols for architecture x86_64:
#   "___builtin_object_size", referenced from:
#   "_alloca", referenced from:
if {${configure.compiler} == "llvm-gcc-4.2"} {
    configure.compiler clang
}

livecheck.regex  "${name}-(\\d+(?:\\.\\d+)*)"
