# SliTaz package receipt.

PACKED_SIZE="260.0K"
UNPACKED_SIZE="668.0K"
PACKAGE="freetype"
VERSION="2.6.4"
CATEGORY="x-window"
SHORT_DESC="A free, high-quality, and portable font engine"
MAINTAINER="pankso@slitaz.org"
LICENSE="FTL GPL2"
WEB_SITE="https://www.freetype.org/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="zlib libpng harfbuzz"
BUILD_DEPENDS="automake libtool autoconf bzip2-dev libpng-dev harfbuzz-dev"

# Rules to configure and make the package.
compile_rules()
{
	patch -p1 -i $stuff/freetype-2.6.4.patch

	./autogen.sh &&
	./configure \
		--sysconfdir=/etc \
		$CONFIGURE_ARGS &&
	make &&
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cook_copy_files *.so*
}
