f17e517968
2.1.2 ===== Significant changes relative to 2.1.1 1. Fixed a regression introduced by 2.1 beta1[13] that caused the remaining GAS implementations of AArch64 (Arm 64-bit) Neon SIMD functions (which are used by default with GCC for performance reasons) to be placed in the `.rodata` section rather than in the `.text` section. This caused the GNU linker to automatically place the `.rodata` section in an executable segment, which prevented libjpeg-turbo from working properly with other linkers and also represented a potential security risk. 2. Fixed an issue whereby the `tjTransform()` function incorrectly computed the MCU block size for 4:4:4 JPEG images with non-unary sampling factors and thus unduly rejected some cropping regions, even though those regions aligned with 8x8 MCU block boundaries. 3. Fixed a regression introduced by 2.1 beta1[13] that caused the build system to enable the Arm Neon SIMD extensions when targetting Armv6 and other legacy architectures that do not support Neon instructions. 4. libjpeg-turbo now performs run-time detection of AltiVec instructions on FreeBSD/PowerPC systems if AltiVec instructions are not enabled at compile time. This allows both AltiVec-equipped and non-AltiVec-equipped CPUs to be supported using the same build of libjpeg-turbo. 5. cjpeg now accepts a `-strict` argument similar to that of djpeg and jpegtran, which causes the compressor to abort if an LZW-compressed GIF input image contains incomplete or corrupt image data.
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.24 2021/11/19 21:55:01 adam Exp $
|
|
|
|
DISTNAME= libjpeg-turbo-2.1.2
|
|
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 # 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"
|