# -*- 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
maintainers {ryandesign @ryandesign} openmaintainer
homepage http://www.dechifro.org/dcraw/
master_sites ${homepage}archive/
description Digital camera raw photo decoding software supporting \
long_description ${name} is a small program for processing raw, \
unprocessed CCD data files from any of hundreds of \
digital cameras with better quality output than the \
tools provided by camera vendors.
checksums rmd160 941f2022dbffb485fdf9ec389fa4285e50c14399 \
sha256 2890c3da2642cd44c5f3bfed2c9b2c1db83da5cec09cc17e0fa72e17541fb4b9 \
depends_lib port:gettext \
xinstall -W ${filespath} Makefile.in ${worksrcpath}/Makefile
patchfiles patch-dcraw.c.diff
build.args CC="${configure.cc} [get_canonical_archflags]" \
CFLAGS="${configure.cflags}" \
CPPFLAGS="${configure.cppflags}" \
LDFLAGS="${configure.ldflags}" \
destroot.args PREFIX=${prefix}
set my_locales {ca cs da de eo es fr hu it nl pl pt ru sv zh_CN zh_TW}
xinstall -m 644 -W ${worksrcpath} dcraw.1 ${destroot}${prefix}/share/man/man1
foreach locale ${my_locales} {
if {[file exists ${worksrcpath}/dcraw_${locale}.1]} {
xinstall -m 755 -d ${destroot}${prefix}/share/man/${locale}/man1
xinstall -m 644 -W ${worksrcpath} dcraw_${locale}.1 ${destroot}${prefix}/share/man/${locale}/man1/dcraw.1
if {[file exists ${worksrcpath}/build/dcraw_${locale}.mo]} {
xinstall -m 755 -d ${destroot}${prefix}/share/locale/${locale}/LC_MESSAGES
xinstall -m 644 -W ${worksrcpath}/build dcraw_${locale}.mo ${destroot}${prefix}/share/locale/${locale}/LC_MESSAGES/dcraw.mo
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}