2.1.4 Significant changes relative to 2.1.3 Fixed a regression introduced in 2.1.3 that caused build failures with Visual Studio 2010. The tjDecompressHeader3() function in the TurboJPEG C API and the TJDecompressor.setSourceImage() method in the TurboJPEG Java API now accept "abbreviated table specification" (AKA "tables-only") datastreams, which can be used to prime the decompressor with quantization and Huffman tables that can be used when decompressing subsequent "abbreviated image" datastreams. libjpeg-turbo now performs run-time detection of AltiVec instructions on OS X/PowerPC systems if AltiVec instructions are not enabled at compile time. This allows both AltiVec-equipped (PowerPC G4 and G5) and non-AltiVec-equipped (PowerPC G3) CPUs to be supported using the same build of libjpeg-turbo. Fixed an error ("Bogus virtual array access") that occurred when attempting to decompress a progressive JPEG image with a height less than or equal to one iMCU (8 * the vertical sampling factor) using buffered-image mode with interblock smoothing enabled. This was a regression introduced by 2.1 beta1[6(b)]. Fixed two issues that prevented partial image decompression from working properly with buffered-image mode: Attempting to call jpeg_crop_scanline() after jpeg_start_decompress() but before jpeg_start_output() resulted in an error ("Improper call to JPEG library in state 207".) Attempting to use jpeg_skip_scanlines() resulted in an error ("Bogus virtual array access") under certain circumstances.
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2022/08/14 20:57:40 adam Exp $
|
|
|
|
DISTNAME= libjpeg-turbo-2.1.4
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libjpeg-turbo/}
|
|
|
|
MAINTAINER= dsainty@NetBSD.org
|
|
HOMEPAGE= https://libjpeg-turbo.org/
|
|
COMMENT= Accelerated libjpeg with SIMD instructions
|
|
LICENSE= gnu-lgpl-v2 AND ijg # OR wxWindows Library Licence, Version 3.1
|
|
|
|
# Note also that libjpeg-turbo's library has a different major version
|
|
# number (8) than that installed by the jpeg package (9).
|
|
# https://libjpeg-turbo.org/About/Jpeg-9
|
|
CONFLICTS= jpeg-[0-9]*
|
|
|
|
.if ${MACHINE_ARCH} == x86_64 || ${MACHINE_ARCH} == i386
|
|
BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
|
|
.endif
|
|
|
|
USE_CMAKE= yes
|
|
USE_LANGUAGES= c c++
|
|
PKGCONFIG_OVERRIDE= release/libturbojpeg.pc.in release/libjpeg.pc.in
|
|
TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}
|
|
# For Darwin
|
|
TEST_ENV+= DYLD_LIBRARY_PATH=${WRKSRC}
|
|
TEST_TARGET= test
|
|
|
|
# Ask for compatibility with jpeg 8, to get the highest ABI that
|
|
# libjpeg-turbo supports.
|
|
CMAKE_ARGS+= -DWITH_JPEG8=ON
|
|
|
|
CHECK_PORTABILITY_SKIP+= release/makemacpkg.in
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|