# $Id: Portfile 80196 2011-07-06 17:25:40Z jeremyhu@macports.org $

PortSystem       1.0

name             ufraw
version          0.18
categories       graphics
maintainers      nomaintainer
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_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  "<title>${name} ${name}-(\\d+(?:\\.\\d+)*) released.*</title>"
