# SliTaz package receipt.

PACKAGE="xorg-libXp"
SOURCE="libXp"
VERSION="1.0.0"
CATEGORY="development"
SHORT_DESC="Provides public APIs to allow client applications to render to non-display devices."
MAINTAINER="rcx@zoominternet.net"
DEPENDS="xorg-libXext"
BUILD_DEPENDS="xorg-libXext-dev xorg-printproto"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://www.x.org/"
# This lib is missing from the current X11R7.4
#WGET_URL="$XORG_MIRROR/lib/$TARBALL"
WGET_URL="http://xorg.freedesktop.org/releases/X11R7.3/src/lib/$TARBALL"
CROSS="bug: can not run test programm"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--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
}