pkgsrc/graphics/libjpeg-turbo/Makefile
adam 09a2ecdf22 libjpeg-turbo: updated to 2.1.1
2.1.1

Significant changes relative to 2.1.0

Fixed a regression introduced in 2.1.0 that caused build failures with non-GCC-compatible compilers for Un*x/Arm platforms.

Fixed a regression introduced by 2.1 beta1[13] that prevented the Arm 32-bit (AArch32) Neon SIMD extensions from building unless the C compiler flags included -mfloat-abi=softfp or -mfloat-abi=hard.

Fixed an issue in the AArch32 Neon SIMD Huffman encoder whereby reliance on undefined C compiler behavior led to crashes ("SIGBUS: illegal alignment") on Android systems when running AArch32/Thumb builds of libjpeg-turbo built with recent versions of Clang.

Added a command-line argument (-copy icc) to jpegtran that causes it to copy only the ICC profile markers from the source file and discard any other metadata.

libjpeg-turbo should now build and run on CHERI-enabled architectures, which use capability pointers that are larger than the size of size_t.

Fixed a regression introduced by 2.1 beta1[5] that caused a segfault in the 64-bit SSE2 Huffman encoder when attempting to losslessly transform a specially-crafted malformed JPEG image.
2021-08-10 09:13:54 +00:00

33 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.23 2021/08/10 09:13:54 adam Exp $
DISTNAME= libjpeg-turbo-2.1.1
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}
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"