# SliTaz package receipt.

PACKED_SIZE="24.0K"
UNPACKED_SIZE="68.0K"
PACKAGE="xorg-xcompmgr"
VERSION="1.1.6"
CATEGORY="x-window"
SHORT_DESC="X composite manager."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
SOURCE="xcompmgr"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://www.x.org/"
WGET_URL="$XORG_MIRROR/app/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="xorg-libX11 xorg-libXdamage xorg-libXcomposite xorg-libXrender \
xorg-libXfixes xorg-libXext xorg-libXau xorg-libXdmcp libxcb"
BUILD_DEPENDS="xorg-libX11-dev xorg-libXdamage-dev xorg-libXcomposite-dev \
xorg-libXrender-dev xorg-libXfixes-dev xorg-libXext-dev xorg-libXau-dev \
xorg-libXdmcp-dev libxcb-dev"

# Rules to configure and make the package.
compile_rules()
{
	# bugs.freedesktop.org/show_bug.cgi?id=46285
	patch -Np0 -i $stuff/46285.diff
	./configure \
		$CONFIGURE_ARGS &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr $fs/etc/xdg
	cp -r $install/usr/bin $fs/usr
	cp -r $stuff/autostart $fs/etc/xdg
}
