SUMMARY="A JPEG optimizer, making JPEG files smaller"
DESCRIPTION="Jpegoptim is a utility to optimize jpeg files. Provides lossless \
optimization (based on optimizing the Huffman tables) and \"lossy\" \
optimization based on setting maximum quality factor."
HOMEPAGE="https://www.kokkonen.net/tjko/projects.html"
COPYRIGHT="1996-2016 Timo Kokkonen"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://www.kokkonen.net/tjko/src/jpegoptim-$portVersion.tar.gz"
CHECKSUM_SHA256="88b1eb64c2a33a2f013f068df8b0331f42c019267401ae3fa28e3277403a5ab7"
PATCHES="jpegoptim-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	jpegoptim = $portVersion
	cmd:jpegoptim = $portVersion
	"
REQUIRES="
	haiku
	lib:libjpeg
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libjpeg
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:make
	"

BUILD()
{
	runConfigure ./configure
	make
	make strip
}

INSTALL()
{
	make install
}
