# SliTaz package receipt.

PACKAGE="libraw"
VERSION="0.14.3"
CATEGORY="multimedia"
SHORT_DESC="A library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)"
MAINTAINER="slaxemulator@gmail.com"
WEB_SITE="http://www.libraw.org/"
SOURCE="LibRaw"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="http://www.libraw.org/data/$TARBALL"

DEPENDS="lcms"
BUILD_DEPENDS="lcms-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure $CONFIGURE_ARGS && make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $install/usr/bin $fs/usr
	cp -a $install/usr/lib/*.so* $fs/usr/lib
}