# SliTaz package receipt.

PACKAGE="xorg-libXinerama"
VERSION="1.1.4"
CATEGORY="x-window"
SHORT_DESC="Xorg server module."
MAINTAINER="pankso@slitaz.org"
SOURCE="libXinerama"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://www.x.org/"
WGET_URL="$XORG_MIRROR/lib/$TARBALL"
CROSS="bug: can not run test program"

DEPENDS="xorg-libXext"
BUILD_DEPENDS="xorg-libXext-dev xorg-xproto"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--build=$HOST_SYSTEM \
		--host=$HOST_SYSTEM &&
	make && make 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
}