# -*- 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 104658 2013-03-30 22:51:55Z ryandesign@macports.org $

PortSystem       1.0

name             ufraw
version          0.19.2
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:project/ufraw/ufraw/${distname}

# 0.19.2 was stealth-updated 2013-03-27
dist_subdir      ${name}/${version}_1

checksums        sha256  73befe9f16f015a8c0f26cef3bb2e17cac9ae64aef2ade48c29aedb1ee51abd3 \
                 rmd160  358b29124496acc6bff25c1a258cb5b8d64c6359

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

configure.args   --enable-contrast

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:
compiler.blacklist-append llvm-gcc-4.2 macports-llvm-gcc-4.2

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