# -*- 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 $

PortSystem 1.0

name             libraw
version          0.14.4
homepage         http://www.libraw.org/
description      library for RAW images manipulation
long_description      a library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)
categories       graphics
platforms        darwin
license          GPL-2+
maintainers      pvanek openmaintainer

master_sites     http://www.libraw.org/data/
distname         LibRaw-${version}

checksums           sha1    885149e25e4afcc90bcaae316ff4aa60b3f8b9ea \
                    rmd160  8fc44d6a36b88145fb368817e136cbb4a33cd7d4

depends_lib      port:jasper \
                 port:lcms2

# this is probably mandatory to get jasper in the game... there is no --with-jasper-... at all
configure.env-append LDFLAGS=-L${prefix}/lib CPPFLAGS=-I${prefix}/include

destroot.destdir prefix=${destroot}${prefix}