dcraw stable port information

Package: dcraw
Version: 9.12
Revision: 1
Description: Raw digital photo decoder
BuildDepends: libjasper.1, libjpeg8, lcms, libgettext8-dev, libiconv-bin, gettext-tools
Depends: libjasper.1-shlibs, libjpeg8-shlibs, lcms-shlibs, libgettext8-shlibs
License: OSI-Approved

# Unpack Phase:
Source: http://www.cybercom.net/~dcoffin/%n/archive/%n-%v.tar.gz
Source-MD5: 917fee61e1509b935a8b8ff08b067b5f

SourceDirectory: dcraw

# Compile Phase (NOTE: there is no configure):
CompileScript: <<
#!/bin/sh -ev
gcc -O4 -I%p/include -L%p/lib -Wall -o dcraw dcraw.c \
-lm -ljasper -ljpeg -llcms -lintl -DLOCALEDIR=\"%p/share/locale/\"
<<

# Install Phase:
InstallScript: <<
#!/bin/sh -ev
#program
mkdir %i/bin
install -m 755 dcraw %i/bin/dcraw

#man pages
mkdir -p -m 755 %i/share/man/man1
cp dcraw.1 %i/share/man/man1

for langchar in \
ca.latin1 cs.latin2 da.latin1 de.latin1 eo.latin3 es.latin1 fr.latin1 \
hu.latin2 it.latin1 pl.latin2 pt.latin1 ru.koi8-r sv.latin1 \
zh_CN.gb2312 zh_TW.big5
do
lang=`echo $langchar | cut -d. -f1`
char=`echo $langchar | cut -d. -f2-`
mkdir -p -m 755 %i/share/man/$lang/man1
iconv -f utf-8 -t $char dcraw_$lang.1 > %i/share/man/$lang/man1/dcraw.1
mkdir -p -m 755 %i/share/man/$lang.UTF-8/man1
cp dcraw_$lang.1 %i/share/man/$lang.UTF-8/man1/dcraw.1
mkdir -p -m 755 %i/share/locale/$lang/LC_MESSAGES
msgfmt -o %i/share/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po
done
<<

DescDetail: dcraw decodes any raw image from any digital camera

DescUsage: <<
The dcraw program is invoked by

dcraw [OPTION]... [FILE]...

Type "dcraw" for a list of options or check the man pages.
<<

DescPort: <<
The compile and install scripts are generated from the commands in the
file "install".
The files for nl are not complete and are skipped.
<<

Homepage: http://www.cybercom.net/~dcoffin/dcraw
Maintainer: Karl-Michael Schindler