# SliTaz package receipt.

PACKAGE="gnustep-base"
VERSION="1.22.0"
CATEGORY="x-window"
SHORT_DESC="GNUstep base package."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnustep.org/"
WGET_URL="ftp://ftp.gnustep.org/pub/gnustep/core/$TARBALL"

DEPENDS="libffi libxslt gnutls libbfd libobjc libssl libcrypto libtasn1"
BUILD_DEPENDS="gnustep-make libffi-dev libxslt-dev gnutls-dev openssl-dev \
libcrypto-dev libtasn1-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--with-ffi-library=/usr/lib \
		--with-ffi-include=$(ls -d /usr/include/libffi-[0-9]*) \
		$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 $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
	cp -a $_pkg/usr/lib/GNUstep $fs/usr/lib
}