# SliTaz package receipt.

PACKED_SIZE="388.0K"
UNPACKED_SIZE="1.6M"
PACKAGE="xorg-libXt"
VERSION="1.1.4"
CATEGORY="x-window"
SHORT_DESC="X Toolkit Library"
MAINTAINER="pankso@slitaz.org"
LICENSE="other"
WEB_SITE="http://www.x.org/"
SOURCE="libXt"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WGET_URL="$XORG_MIRROR/lib/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="xorg-libSM xorg-libX11"
BUILD_DEPENDS="xorg-libSM-dev xorg-libX11-dev glib-dev util-linux-uuid-dev"

# Handle cross compilation.
case "$ARCH" in
	arm) unset CFLAGS ;;
esac

# Rules to configure and make the package.
compile_rules()
{
	./configure \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--with-appdefaultdir=/etc/X11/app-defaults \
		$CONFIGURE_ARGS &&
	make &&
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $install/usr/lib/*.so* $fs/usr/lib
}
