# SliTaz package receipt.

PACKAGE="exiv2"
VERSION="0.21"
CATEGORY="graphics"
SHORT_DESC="Exif and Iptc metadata manipulation library and tools"
MAINTAINER="jozee@slitaz.org"
DEPENDS="expat zlib gcc-lib-base"
BUILD_DEPENDS="gcc-lib-base expat-dev zlib-dev"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.exiv2.org/"
WGET_URL="$WEB_SITE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
   	cd $src
	./configure \
		--prefix=/usr \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

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