# SliTaz package receipt.

PACKAGE="clutter-gtk"
VERSION="0.10.8"
CATEGORY="x-window"
SHORT_DESC="GTK+ libraries for Clutter."
MAINTAINER="pankso@slitaz.org"
DEPENDS="gtk+ clutter"
BUILD_DEPENDS="gtk+-dev clutter-dev gobject-introspection-dev automake autoconf \
libtool gtk-doc"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://clutter-project.org/"
WGET_URL="http://www.clutter-project.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	patch -Np1 -i $stuff/fix-gir.patch
	sed -i -e 's/GTK_WIDGET_REALIZED/gtk_widget_get_realized/' \
	       -e 's/GTK_WIDGET_VISIBLE/gtk_widget_get_visible/' \
	       clutter-gtk/gtk-clutter-embed.c
	autoreconf -i
	./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/lib/*.so* $fs/usr/lib
	cp -a $_pkg/usr/lib/girepository-1.0 $fs/usr/lib
}