# SliTaz package receipt.

PACKAGE="lives"
VERSION="1.3.4"
CATEGORY="multimedia"
SHORT_DESC="Simple to use, yet powerful video editor and VJ tool."
MAINTAINER="pankso@slitaz.org"
SOURCE="LiVES"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://lives.sourceforge.net/"
WGET_URL="http://www.xs4all.nl/%7Esalsaman/lives/current/$TARBALL"
DEPENDS="alsa-lib libpng gtk+ sox mjpegtools libavc1394 liboil libtheora"
BUILD_DEPENDS="alsa-lib alsa-lib-dev libpng-dev gtk+-dev procps expat-dev perl"

# Rules to configure and make the package.
#
compile_rules()
{
	sed -i 's|\$(LN_S) \$(DESTDIR)\$(bindir)/lives-exe|$(LN_S) lives-exe|' Makefile*
	./configure \
		--prefix=/usr \
		--disable-jack \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib $fs/usr/share
	cp -a $install/usr/bin $fs/usr
	cp -a $install/usr/lib/*.so* $fs/usr/lib
	cp -a $install/usr/lib/lives $fs/usr/lib
	cp -a $install/usr/share/lives $fs/usr/share
	find $fs/usr/lib/lives -name "*.la" -exec rm '{}' \;
}