# SliTaz package receipt.

PACKED_SIZE="176.0K"
UNPACKED_SIZE="588.0K"
PACKAGE="pixman"
VERSION="0.40.0"
CATEGORY="x-window"
SHORT_DESC="Pixel-manipulation library for X and Cairo."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://pixman.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://cairographics.org/releases/$TARBALL"

DEPENDS="glibc-base"
BUILD_DEPENDS="libpng-dev"

HOST_ARCH="i486 arm"

current_version()
{
	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
	./configure		\
		--enable-gtk=no	\
		--enable-libpng	\
		$CONFIGURE_ARGS &&
	make &&
	make install
}

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