# SliTaz package receipt.

PACKAGE="flam3"
VERSION="3.0"
CATEGORY="graphics"
SHORT_DESC="Tools to create/display fractal flames: algorithmically generated images and animations"
MAINTAINER="gokhlayeh@slitaz.org"
DEPENDS="expat libjpeg libpng libxml2"
BUILD_DEPENDS="expat-dev jpeg-dev libpng-dev libxml2-dev"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://flam3.com/"
WGET_URL="http://flam3.googlecode.com/files/$TARBALL"

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

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