# SliTaz package receipt.

PACKAGE="freetype1"
SOURCE="freetype"
VERSION="1.3.1"
CATEGORY="x-window"
SHORT_DESC="Freetype1 font engine."
MAINTAINER="rcx@zoominternet.net"
DEPENDS="glibc-base"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.freetype.org/"
WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	# NOTE: DESTDIR is not recognized by freetype1 make install

	cd $src
	./configure \
		--sysconfdir=$PWD/_pkg/etc \
		--prefix=$PWD/_pkg/usr \
		--mandir=$PWD/_pkg/usr/share/man \
		--includedir=$PWD/_pkg/usr/include \
		--libdir=$PWD/_pkg/usr/lib \
		--with-x --enable-gif \
		$CONFIGURE_ARGS &&
	make ttlib ttpo || return 1

	cd lib
	make DESTDIR=$PWD/_pkg -f arch/unix/Makefile install || return 1
	cd ../po
	make DESTDIR=$PWD/_pkg -f Makefile install || return 1
}

# 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
}