Files
haikuports/media-libs/jpeg/jpeg-9.recipe
Humdinger 3ea69a805d De-lint recipes.
*	gnash
	Don't start SUMMARY with app name
	Re-ordered blocks

*	gophernicus
	Don't start SUMMARY with app name
	Re-ordered blocks

*	harfbuzz
	Don't start SUMMARY with app name
	Re-ordered blocks

*	inconsolata
	Don't start SUMMARY with app name
	Re-ordered blocks

*	indent
	Don't start SUMMARY with app name
	Re-ordered blocks
	Fixed (SECONDARY_)ARCHITECTURES and PROVIDES

*	inputproto
	Don't start SUMMARY with app name
	Improved SUMMARY and DESCRIPTION
	Re-ordered blocks

*	jamvm
	Don't start SUMMARY with app name
	Removed "DEPEND"
	Re-ordered blocks

*	jpeg
	Don't start SUMMARY with app name
	Re-ordered blocks

*	jgmod
	Don't start SUMMARY with app name
	Re-ordered blocks

*	kbproto
	Don't start SUMMARY with app name
	Re-ordered blocks

*	kdiff3
	Don't start SUMMARY with app name
	Re-ordered blocks

*	libdom
	Don't start SUMMARY with app name
	Re-ordered blocks
	Removed $secondaryArchSuffix as there are no 2nd archs declared

*	libdvdcss
	Don't start SUMMARY with app name
	Re-ordered blocks

*	libdwarf
	Don't start SUMMARY with app name
	Re-ordered blocks

*	libevent
	Minor cosmetics
	Re-ordered blocks
2015-08-07 16:40:23 +02:00

102 lines
2.5 KiB
Bash

SUMMARY="An image compression library and tools for JPEGs"
DESCRIPTION="This package contains C software to implement JPEG image \
encoding, decoding, and transcoding. JPEG is a standardized compression \
method for full-color and gray-scale images.
The distributed programs provide conversion between JPEG "JFIF" format and \
image files in PBMPLUS PPM/PGM, GIF, BMP, and Targa file formats. The core \
compression and decompression library can easily be reused in other programs, \
such as image viewers. The package is highly portable C code; we have tested \
it on many machines ranging from PCs to Crays."
HOMEPAGE="http://www.ijg.org"
COPYRIGHT="1991-2013, Thomas G. Lane, Guido Vollbeding."
LICENSE="JPEG"
REVISION="3"
SOURCE_URI="http://www.ijg.org/files/jpegsrc.v9.tar.gz"
CHECKSUM_SHA256="c4e29e9375aaf60b4b79db87a58b063fb5b84f923bee97a88280b3d159e7e535"
PATCHES="jpeg-9.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
jpeg$secondaryArchSuffix = $portVersion compat >= 9
lib:libjpeg$secondaryArchSuffix = $portVersion compat >= 9
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
jpeg${secondaryArchSuffix}_devel = $portVersion compat >= 9
devel:libjpeg$secondaryArchSuffix = $portVersion compat >= 9
"
REQUIRES_devel="
jpeg$secondaryArchSuffix == $portVersion base
"
if [ -z "$secondaryArchSuffix" ]; then
SUMMARY_tools="The JPEG tools"
PROVIDES_tools="
jpeg_tools = $portVersion compat >= 9
cmd:cjpeg = $portVersion compat >= 9
cmd:djpeg = $portVersion compat >= 9
cmd:jpegtran = $portVersion compat >= 9
cmd:rdjpgcom = $portVersion compat >= 9
cmd:wrjpgcom = $portVersion compat >= 9
"
REQUIRES_tools="
haiku
jpeg == $portVersion base
"
fi
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
BUILD()
{
aclocal
libtoolize --force --copy --install
automake --add-missing
autoconf
runConfigure ./configure \
--enable-shared
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libjpeg
# devel package
packageEntries devel \
$developDir
# tools package
if [ -z "$secondaryArchSuffix" ]; then
packageEntries tools \
$binDir \
$documentationDir
fi
# Remove stuff we don't need in the secondary architecture base package.
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir
rm -rf $documentationDir
fi
}