From 4c048830dcb69536e3f0b0b670133852b9fd4dfb Mon Sep 17 00:00:00 2001 From: kenmays Date: Mon, 11 Nov 2019 13:38:21 -0800 Subject: [PATCH] jpeg: bump revision and cleanup (#4369) from korli: disable autoheader to avoid regeneration of jconfig.cfg --- media-libs/jpeg/jpeg-9b.recipe | 103 ---------------- media-libs/jpeg/jpeg-9c.recipe | 5 +- media-libs/jpeg/licenses/JPEG | 156 ++++++++++++++++-------- media-libs/jpeg/patches/jpeg-9.patchset | 27 ---- 4 files changed, 106 insertions(+), 185 deletions(-) delete mode 100644 media-libs/jpeg/jpeg-9b.recipe delete mode 100644 media-libs/jpeg/patches/jpeg-9.patchset diff --git a/media-libs/jpeg/jpeg-9b.recipe b/media-libs/jpeg/jpeg-9b.recipe deleted file mode 100644 index 8824493e5..000000000 --- a/media-libs/jpeg/jpeg-9b.recipe +++ /dev/null @@ -1,103 +0,0 @@ -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; it was tested \ -on many machines ranging from PCs to Crays." -HOMEPAGE="http://www.ijg.org" -COPYRIGHT="1991-2014, Thomas G. Lane, Guido Vollbeding" -LICENSE="JPEG" -REVISION="5" -SOURCE_URI="http://www.ijg.org/files/jpegsrc.v$portVersion.tar.gz" -CHECKSUM_SHA256="240fd398da741669bf3c90366f58452ea59041cacc741a489b99f2f6a0bad052" -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 = 9.2.0 compat >= 9 - " -REQUIRES=" - haiku$secondaryArchSuffix - " - -PROVIDES_devel=" - jpeg${secondaryArchSuffix}_devel = $portVersion compat >= 9 - devel:libjpeg$secondaryArchSuffix = 9.2.0 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$secondaryArchSuffix - cmd:make - " - -defineDebugInfoPackage jpeg$secondaryArchSuffix \ - $libDir/libjpeg.so.9.2.0 - -BUILD() -{ - autoreconf -fi - runConfigure ./configure \ - --enable-shared - make $jobArgs -} - -INSTALL() -{ - make install - - rm $libDir/libjpeg.la - - 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 -} diff --git a/media-libs/jpeg/jpeg-9c.recipe b/media-libs/jpeg/jpeg-9c.recipe index 56370f5ec..04656aa66 100644 --- a/media-libs/jpeg/jpeg-9c.recipe +++ b/media-libs/jpeg/jpeg-9c.recipe @@ -11,10 +11,9 @@ on many machines ranging from PCs to Crays." HOMEPAGE="http://www.ijg.org/" COPYRIGHT="1991-2018 Thomas G. Lane, Guido Vollbeding" LICENSE="JPEG" -REVISION="2" +REVISION="3" SOURCE_URI="http://www.ijg.org/files/jpegsrc.v$portVersion.tar.gz" CHECKSUM_SHA256="650250979303a649e21f87b5ccd02672af1ea6954b911342ea491f351ceb7122" -PATCHES="jpeg-9.patchset" ARCHITECTURES="x86_gcc2 x86 x86_64 arm" SECONDARY_ARCHITECTURES="x86_gcc2 x86" @@ -73,7 +72,7 @@ defineDebugInfoPackage jpeg$secondaryArchSuffix \ BUILD() { - autoreconf -fi + AUTOHEADER=true autoreconf -fi runConfigure ./configure \ --enable-shared make $jobArgs diff --git a/media-libs/jpeg/licenses/JPEG b/media-libs/jpeg/licenses/JPEG index 451265d76..56cdb6003 100644 --- a/media-libs/jpeg/licenses/JPEG +++ b/media-libs/jpeg/licenses/JPEG @@ -1,10 +1,10 @@ The Independent JPEG Group's JPEG software ========================================== -README for release 8c of 16-Jan-2011 +README for release 9c of 14-Jan-2018 ==================================== -This distribution contains the eighth public release of the Independent JPEG +This distribution contains the ninth public release of the Independent JPEG Group's free JPEG software. You are welcome to redistribute this software and to use it for any purpose, subject to the conditions under LEGAL ISSUES, below. @@ -13,7 +13,8 @@ Bill Allombert, Jim Boucher, Lee Crocker, Bob Friesenhahn, Ben Jackson, Julian Minguillon, Luis Ortiz, George Phillips, Davide Rossi, Ge' Weijers, and other members of the Independent JPEG Group. -IJG is not affiliated with the official ISO JPEG standards committee. +IJG is not affiliated with the ISO/IEC JTC1/SC29/WG1 standards committee +(previously known as JPEG, together with ITU-T SG16). DOCUMENTATION ROADMAP @@ -59,7 +60,7 @@ OVERVIEW This package contains C software to implement JPEG image encoding, decoding, and transcoding. JPEG (pronounced "jay-peg") is a standardized compression -method for full-color and gray-scale images. +method for full-color and grayscale images. This software implements JPEG baseline, extended-sequential, and progressive compression processes. Provision is made for supporting all variants of these @@ -114,7 +115,7 @@ with respect to this software, its quality, accuracy, merchantability, or fitness for a particular purpose. This software is provided "AS IS", and you, its user, assume the entire risk as to its quality and accuracy. -This software is copyright (C) 1991-2011, Thomas G. Lane, Guido Vollbeding. +This software is copyright (C) 1991-2018, Thomas G. Lane, Guido Vollbeding. All Rights Reserved except as specified below. Permission is hereby granted to use, copy, modify, and distribute this @@ -145,15 +146,6 @@ commercial products, provided that all warranty or liability claims are assumed by the product vendor. -ansi2knr.c is included in this distribution by permission of L. Peter Deutsch, -sole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA. -ansi2knr.c is NOT covered by the above copyright and conditions, but instead -by the usual distribution terms of the Free Software Foundation; principally, -that you must include source code if you redistribute it. (See the file -ansi2knr.c for full details.) However, since ansi2knr.c is not needed as part -of any program generated from the IJG code, this does not limit you more than -the foregoing paragraphs do. - The Unix configuration script "configure" was produced with GNU Autoconf. It is copyright by the Free Software Foundation but is freely distributable. The same holds for its supporting scripts (config.guess, config.sub, @@ -161,16 +153,11 @@ ltmain.sh). Another support script, install-sh, is copyright by X Consortium but is also freely distributable. The IJG distribution formerly included code to read and write GIF files. -To avoid entanglement with the Unisys LZW patent, GIF reading support has -been removed altogether, and the GIF writer has been simplified to produce -"uncompressed GIFs". This technique does not use the LZW algorithm; the -resulting GIF files are larger than usual, but are readable by all standard -GIF decoders. - -We are required to state that - "The Graphics Interchange Format(c) is the Copyright property of - CompuServe Incorporated. GIF(sm) is a Service Mark property of - CompuServe Incorporated." +To avoid entanglement with the Unisys LZW patent (now expired), GIF reading +support has been removed altogether, and the GIF writer has been simplified +to produce "uncompressed GIFs". This technique does not use the LZW +algorithm; the resulting GIF files are larger than usual, but are readable +by all standard GIF decoders. REFERENCES @@ -184,8 +171,8 @@ The best short technical introduction to the JPEG compression algorithm is Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44. (Adjacent articles in that issue discuss MPEG motion picture compression, applications of JPEG, and related topics.) If you don't have the CACM issue -handy, a PostScript file containing a revised version of Wallace's article is -available at http://www.ijg.org/files/wallace.ps.gz. The file (actually +handy, a PDF file containing a revised version of Wallace's article is +available at http://www.ijg.org/files/Wallace.JPEG.pdf. The file (actually a preprint for an article that appeared in IEEE Trans. Consumer Electronics) omits the sample images that appeared in CACM, but it includes corrections and some added material. Note: the Wallace article is copyright ACM and IEEE, @@ -221,20 +208,25 @@ Part 1: Requirements and guidelines" and has document numbers ISO/IEC IS 10918-1, ITU-T T.81. Part 2 is titled "Digital Compression and Coding of Continuous-tone Still Images, Part 2: Compliance testing" and has document numbers ISO/IEC IS 10918-2, ITU-T T.83. -IJG JPEG 8 introduces an implementation of the JPEG SmartScale extension -which is specified in a contributed document at ITU and ISO with title "ITU-T -JPEG-Plus Proposal for Extending ITU-T T.81 for Advanced Image Coding", April -2006, Geneva, Switzerland. The latest version of the document is Revision 3. +IJG JPEG 8 introduced an implementation of the JPEG SmartScale extension +which is specified in two documents: A contributed document at ITU and ISO +with title "ITU-T JPEG-Plus Proposal for Extending ITU-T T.81 for Advanced +Image Coding", April 2006, Geneva, Switzerland. The latest version of this +document is Revision 3. And a contributed document ISO/IEC JTC1/SC29/WG1 N +5799 with title "Evolution of JPEG", June/July 2011, Berlin, Germany. +IJG JPEG 9 introduces a reversible color transform for improved lossless +compression which is described in a contributed document ISO/IEC JTC1/SC29/ +WG1 N 6080 with title "JPEG 9 Lossless Coding", June/July 2012, Paris, +France. The JPEG standard does not specify all details of an interchangeable file -format. For the omitted details we follow the "JFIF" conventions, revision -1.02. JFIF 1.02 has been adopted as an Ecma International Technical Report -and thus received a formal publication status. It is available as a free -download in PDF format from -http://www.ecma-international.org/publications/techreports/E-TR-098.htm. -A PostScript version of the JFIF document is available at -http://www.ijg.org/files/jfif.ps.gz. There is also a plain text version at -http://www.ijg.org/files/jfif.txt.gz, but it is missing the figures. +format. For the omitted details we follow the "JFIF" conventions, version 2. +JFIF version 1 has been adopted as Recommendation ITU-T T.871 (05/2011) : +Information technology - Digital compression and coding of continuous-tone +still images: JPEG File Interchange Format (JFIF). It is available as a +free download in PDF file format from http://www.itu.int/rec/T-REC-T.871. +A PDF file of the older JFIF document is available at +http://www.w3.org/Graphics/JPEG/jfif3.pdf. The TIFF 6.0 file format specification can be obtained by FTP from ftp://ftp.sgi.com/graphics/tiff/TIFF6.ps.gz. The JPEG incorporation scheme @@ -254,8 +246,8 @@ ARCHIVE LOCATIONS The "official" archive site for this software is www.ijg.org. The most recent released version can always be found there in directory "files". This particular version will be archived as -http://www.ijg.org/files/jpegsrc.v8c.tar.gz, and in Windows-compatible -"zip" archive format as http://www.ijg.org/files/jpegsr8c.zip. +http://www.ijg.org/files/jpegsrc.v9c.tar.gz, and in Windows-compatible +"zip" archive format as http://www.ijg.org/files/jpegsr9c.zip. The JPEG FAQ (Frequently Asked Questions) article is a source of some general information about JPEG. @@ -281,6 +273,10 @@ ITU JPEG (Study Group 16) meeting in Geneva, Switzerland. Thank to Thomas Wiegand and Gary Sullivan for inviting me to the Joint Video Team (MPEG & ITU) meeting in Geneva, Switzerland. +Thank to Thomas Richter and Daniel Lee for inviting me to the +ISO/IEC JTC1/SC29/WG1 (previously known as JPEG, together with ITU-T SG16) +meeting in Berlin, Germany. + Thank to John Korejwa and Massimo Ballerini for inviting me to fruitful consultations in Boston, MA and Milan, Italy. @@ -297,30 +293,86 @@ communication about JPEG configuration in Sigma Photo Pro software. Thank to Andrew Finkenstadt for hosting the ijg.org site. -Last but not least special thank to Thomas G. Lane for the original -design and development of this singular software package. +Thank to Thomas G. Lane for the original design and development of +this singular software package. + +Thank to Lars Goehler, Andreas Heinecke, Sebastian Fuss, Yvonne Roebert, +Andrej Werner, and Ulf-Dietrich Braumann for support and public relations. FILE FORMAT WARS ================ -The ISO JPEG standards committee actually promotes different formats like -"JPEG 2000" or "JPEG XR" which are incompatible with original DCT-based -JPEG and which are based on faulty technologies. IJG therefore does not -and will not support such momentary mistakes (see REFERENCES). -We have little or no sympathy for the promotion of these formats. Indeed, -one of the original reasons for developing this free software was to help -force convergence on common, interoperable format standards for JPEG files. +The ISO/IEC JTC1/SC29/WG1 standards committee (previously known as JPEG, +together with ITU-T SG16) currently promotes different formats containing +the name "JPEG" which is misleading because these formats are incompatible +with original DCT-based JPEG and are based on faulty technologies. +IJG therefore does not and will not support such momentary mistakes +(see REFERENCES). +There exist also distributions under the name "OpenJPEG" promoting such +kind of formats which is misleading because they don't support original +JPEG images. +We have no sympathy for the promotion of inferior formats. Indeed, one of +the original reasons for developing this free software was to help force +convergence on common, interoperable format standards for JPEG files. Don't use an incompatible file format! (In any case, our decoder will remain capable of reading existing JPEG image files indefinitely.) +The ISO committee pretends to be "responsible for the popular JPEG" in their +public reports which is not true because they don't respond to actual +requirements for the maintenance of the original JPEG specification. +Furthermore, the ISO committee pretends to "ensure interoperability" with +their standards which is not true because their "standards" support only +application-specific and proprietary use cases and contain mathematically +incorrect code. + +There are currently different distributions in circulation containing the +name "libjpeg" which is misleading because they don't have the features and +are incompatible with formats supported by actual IJG libjpeg distributions. +One of those fakes is released by members of the ISO committee and just uses +the name of libjpeg for misdirection of people, similar to the abuse of the +name JPEG as described above, while having nothing in common with actual IJG +libjpeg distributions and containing mathematically incorrect code. +The other one claims to be a "derivative" or "fork" of the original libjpeg, +but violates the license conditions as described under LEGAL ISSUES above +and violates basic C programming properties. +We have no sympathy for the release of misleading, incorrect and illegal +distributions derived from obsolete code bases. +Don't use an obsolete code base! + +According to the UCC (Uniform Commercial Code) law, IJG has the lawful and +legal right to foreclose on certain standardization bodies and other +institutions or corporations that knowingly perform substantial and +systematic deceptive acts and practices, fraud, theft, and damaging of the +value of the people of this planet without their knowing, willing and +intentional consent. +The titles, ownership, and rights of these institutions and all their assets +are now duly secured and held in trust for the free people of this planet. +People of the planet, on every country, may have a financial interest in +the assets of these former principals, agents, and beneficiaries of the +foreclosed institutions and corporations. +IJG asserts what is: that each man, woman, and child has unalienable value +and rights granted and deposited in them by the Creator and not any one of +the people is subordinate to any artificial principality, corporate fiction +or the special interest of another without their appropriate knowing, +willing and intentional consent made by contract or accommodation agreement. +IJG expresses that which already was. +The people have already determined and demanded that public administration +entities, national governments, and their supporting judicial systems must +be fully transparent, accountable, and liable. +IJG has secured the value for all concerned free people of the planet. + +A partial list of foreclosed institutions and corporations ("Hall of Shame") +is currently prepared and will be published later. + TO DO ===== -Version 8 is the first release of a new generation JPEG standard -to overcome the limitations of the original JPEG specification. +Version 9 is the second release of a new generation JPEG standard +to overcome the limitations of the original JPEG specification, +and is the first true source reference JPEG codec. More features are being prepared for coming releases... -Please send bug reports, offers of help, etc. to jpeg-info@uc.ag. +Please send bug reports, offers of help, etc. to jpeg-info@jpegclub.org. diff --git a/media-libs/jpeg/patches/jpeg-9.patchset b/media-libs/jpeg/patches/jpeg-9.patchset deleted file mode 100644 index 310469119..000000000 --- a/media-libs/jpeg/patches/jpeg-9.patchset +++ /dev/null @@ -1,27 +0,0 @@ -From b176455d2abc3a95f7e9133c8f4e18ba6f8678b5 Mon Sep 17 00:00:00 2001 -From: Ingo Weinhold -Date: Thu, 13 Jun 2013 23:56:48 +0200 -Subject: jconfig.cfg: fix handling of "boolean" on Haiku - - -diff --git a/jconfig.cfg b/jconfig.cfg -index c4548fc..486baf8 100644 ---- a/jconfig.cfg -+++ b/jconfig.cfg -@@ -31,6 +31,13 @@ typedef unsigned char boolean; - #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ - #endif - -+/* On Haiku defines macros TRUE and FALSE, but not the type -+ boolean. */ -+#ifdef __HAIKU__ -+typedef int boolean; -+#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ -+#endif -+ - #ifdef JPEG_INTERNALS - - #undef RIGHT_SHIFT_IS_UNSIGNED --- -2.16.1 -