# -*- 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 64833 2010-03-16 10:27:39Z ryandesign@macports.org $

PortSystem      1.0

name            libopenraw
version         0.0.8
revision        2
categories      graphics
maintainers     devans openmaintainer
platforms       darwin
homepage        http://libopenraw.freedesktop.org/wiki/
master_sites    http://libopenraw.freedesktop.org/download/

universal_variant no

description \
    libopenraw is an ongoing project to provide a free software implementation for camera RAW files decoding.

long_description \
    libopenraw is an ongoing project to provide a free software implementation for camera RAW files decoding. \
    One of the main reasons is that dcraw is not suited for easy integration into applications, and there is a \
    need for an easy to use API to build free software digital image processing applications. It also has the \
    goal to address features missing from dcraw such as meta-data decoding and easy thumbnail extraction.

checksums       md5     fc26f146586a4b601326130bce6ffd88 \
                sha1    6eb19679f3b5cdc566a4caa459811121a78ac0d9 \
                rmd160  ae653949812c0b248515837d08e0dd8f28a4e5d1

patchfiles      patch-Makefile.in.diff

depends_build   port:pkgconfig

depends_lib     port:gtk2 \
                port:boost

configure.args  --with-boost=${prefix}

variant no_gnome description {Build without GNOME/GTK2 support}  {
    depends_lib-delete port:gtk2
    configure.args-append  --disable-gnome
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex {version\ (\d+(?:\.\d+)*)}
