diff --git a/media-libs/jpeg/jpeg-9a.recipe b/media-libs/jpeg/jpeg-9a.recipe new file mode 100644 index 000000000..2a4761230 --- /dev/null +++ b/media-libs/jpeg/jpeg-9a.recipe @@ -0,0 +1,102 @@ +SUMMARY="JPEG image compression library and tools" +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" +LICENSE="JPEG" +COPYRIGHT="1991-2014, Thomas G. Lane, Guido Vollbeding. All Rights Reserved" +SRC_URI="http://www.ijg.org/files/jpegsrc.v$portVersion.tar.gz" +CHECKSUM_SHA256="3a753ea48d917945dd54a2d97de388aa06ca2eb1066cbfdc6652036349fe05a7" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64 arm" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PATCHES="jpeg-9.patchset" + +PROVIDES=" + jpeg$secondaryArchSuffix = $portVersion compat >= 9 + lib:libjpeg$secondaryArchSuffix = 9.1.0 compat >= 9 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + " +BUILD_REQUIRES=" + " +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:grep + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:make + " + +BUILD() +{ + autoreconf -fi + 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 +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + jpeg${secondaryArchSuffix}_devel = $portVersion compat >= 9 + devel:libjpeg$secondaryArchSuffix = 9.1.0 compat >= 9 + " +REQUIRES_devel=" + jpeg$secondaryArchSuffix == $portVersion base + " + +# ----- tools package ------------------------------------------------------- + +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 >= $haikuVersion + jpeg == $portVersion base + " +fi