# SliTaz package receipt.

PACKED_SIZE="24.0K"
UNPACKED_SIZE="48.0K"
PACKAGE="libffi"
VERSION="3.1"
CATEGORY="development"
SHORT_DESC="A portable foreign function interface library."
MAINTAINER="rcx@zoominternet.net"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://sourceware.org/libffi/"
WGET_URL="ftp://sourceware.org/pub/$PACKAGE/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="glibc-base"

# Rules to configure and make the package.
compile_rules()
{
	./configure \
		--includedir=/usr/include \
		$CONFIGURE_ARGS  &&
	make && make DESTDIR=$DESTDIR 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
}
