# SliTaz package receipt.

PACKAGE="libtool"
VERSION="2.4.6"
CATEGORY="development"
SHORT_DESC="The GNU Portable Library Tool."
MAINTAINER="pankso@slitaz.org"
DEPENDS="libltdl automake autoconf"
BUILD_DEPENDS="automake autoconf"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/libtool/"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --enable-shared $CONFIGURE_ARGS &&
	make && make install 
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr \
		$fs/usr/share $fs/usr/lib

	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
	cp -a $_pkg/usr/include $fs/usr
	cp -a $_pkg/usr/share/aclocal $fs/usr/share
	cp -a $_pkg/usr/share/libtool $fs/usr/share
	cp -a $_pkg/usr/bin $fs/usr
}