# SliTaz package receipt.

PACKAGE="xorg-x11perf"
VERSION="1.6.1"
CATEGORY="x-window"
SHORT_DESC="Utility who runs one or more performance tests and reports."
MAINTAINER="paul@slitaz.org"
DEPENDS="xorg-libX11 xorg-libXmu xorg-libXext xorg-libXft xorg-libXrender"
BUILD_DEPENDS="xorg-util-macros xorg-xproto xorg-libX11-dev xorg-libXmu-dev \
xorg-libXext-dev xorg-libXft-dev xorg-libXrender-dev pcre-dev freetype-dev \
harfbuzz-dev"
SOURCE="x11perf"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://xorg.freedesktop.org/"
WGET_URL="$XORG_MIRROR/app/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr \
	--mandir=/usr/share/man $CONFIGURE_ARGS && \
	make && make DESTDIR=$PWD/_pkg install
}

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