# SliTaz package receipt.

PACKAGE="lesstif"
VERSION="0.95.2"
CATEGORY="x-window"
SHORT_DESC="An LGPL clone of Motif, which is a set of GUI widgets."
MAINTAINER="rcx@zoominternet.net"
DEPENDS="glibc-base xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
xorg-libXdmcp xorg-libXext xorg-libXt util-linux-ng-uuid freetype \
xorg-libXp"
BUILD_DEPENDS="slitaz-toolchain xorg-dev xorg-xextproto util-linux-ng-uuid-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://sourceforge.net/projects/lesstif/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--includedir=/usr/include \
		$CONFIGURE_ARGS  &&
	make  &&
	make -j 1 DESTDIR=$PWD/_pkg 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
	cp -a $_pkg/usr/lib/LessTif $fs/usr/lib
	cp -a $_pkg/usr/lib/X11 $fs/usr/lib
	cp -a $_pkg/usr/bin $fs/usr
}