Sat Nov 12 18:59:20 2022 UTC ()
Update graphics/charls to version 2.3.4

Changes from CHANGELOG.md:

# Change Log
## [2.3.4] - 2021-2-12

### Changed

- Replaced legacy test images.

## [2.3.3] - 2021-2-5

### Fixed

- Fixed [#167](https://github.com/team-charls/charls/issues/167),
  Decoding\Encoding fails on IBM s390x CPU (Big Endian architecture).

## [2.3.2] - 2021-1-29

### Fixed

- Fixed https://github.com/team-charls/charls/issues/160,
  warning: cast from 'unsigned char*' to 'uint16_t*'
  increases required alignment of target type.
- Fixed https://github.com/team-charls/charls/issues/161 ,
  warning: useless cast to type 'size_t' {aka 'unsigned int'}
  [-Wuseless-cast].

### Changed

- Updates to the CMakeLists.txt for Unix builds (except macOS)
  to hide more symbols from the shared library.
- C++14 is now the minimum version instead of explicitly required.
  This allows consuming applications more flexibility.
  Typically CMake will select the latest C++ standard version that
  the used C++ compiler supports.

## [2.3.1] - 2021-1-25

### Fixed

- Fixed https://github.com/team-charls/charls/issues/155 ,
  charls::jpegls_decoder::decode: 2 overloads have similar conversions
  in v2.3.0

## [2.3.0] - 2022-1-24

### Added

- The encoder API has been extended with a rewind method that can be
  used to re-use a configured encoder to encode multiple images in a loop.
- Added support to decode JPEG-LS images that use restart markers
  https://github.com/team-charls/charls/issues/92 .
- Added support to write and read comment (COM) segments
  https://github.com/team-charls/charls/issues/113 .
- Added support to encode/decode oversized images
  (width or height larger then 65535).
- Extended the validation of the encoded JPEG-LS byte stream during decoding.
- Added support to encode JPEG-LS images with:
  - The option to ensure the output stream has an even size.
  - The option to write the CharLS version number as a comment (COM segment)
    to the output stream.
  - The option to write the coding parameters to the output stream if
    the bits per pixel are larger then 12 (enabled by default).
- Usage of compiler specific attributes on the public API as replacement for
  ``[[nodiscard]]`` (which is a C++17 feature).

### Fixed

- Fixed https://github.com/team-charls/charls/issues/84 ,
  Default preset coding parameters not computed for unset values.
- Fixed https://github.com/team-charls/charls/issues/102 ,
  CMake find_package(charls 2.2.0 REQUIRED) not working.

### Changed

- CMakeSettings.json has been replaced with CMakePresets.json.
- Non default coding parameters are explicitly stored in
  the output stream during encoding.
- GCC shared library release builds are now using LTO
  (Link Time Optimization).
- Some functions use compiler intrinsics for slightly better performance.

## [2.2.1] - 2022-2-3

### Fixed

- Backport of fix for https://github.com/team-charls/charls/issues/167 ,
  Decoding\Encoding fails on IBM s390x CPU (Big Endian architecture).


(nros)
diff -r1.2 -r1.3 pkgsrc/graphics/charls/Makefile
diff -r1.1 -r1.2 pkgsrc/graphics/charls/PLIST
diff -r1.1 -r1.2 pkgsrc/graphics/charls/buildlink3.mk
diff -r1.4 -r1.5 pkgsrc/graphics/charls/distinfo

cvs diff -r1.2 -r1.3 pkgsrc/graphics/charls/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/charls/Makefile 2021/02/14 12:55:18 1.2
+++ pkgsrc/graphics/charls/Makefile 2022/11/12 18:59:20 1.3
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.2 2021/02/14 12:55:18 wiz Exp $ 1# $NetBSD: Makefile,v 1.3 2022/11/12 18:59:20 nros Exp $
2 2
3DISTNAME= charls-2.2.0 3DISTNAME= charls-2.3.4
4CATEGORIES= graphics 4CATEGORIES= graphics
5MASTER_SITES= ${MASTER_SITE_GITHUB:=team-charls/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=team-charls/}
6 6
7MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= https://github.com/team-charls/charls/ 8HOMEPAGE= https://github.com/team-charls/charls/
9COMMENT= Jpeg-ls codec library 9COMMENT= Jpeg-ls codec library
10LICENSE= modified-bsd 10LICENSE= modified-bsd
11 11
12USE_CMAKE= yes 12USE_CMAKE= yes
13USE_LANGUAGES= c c++ 13USE_LANGUAGES= c c++
14 14
15CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON 15CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON
16CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release 16CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release

cvs diff -r1.1 -r1.2 pkgsrc/graphics/charls/PLIST (expand / switch to unified diff)

--- pkgsrc/graphics/charls/PLIST 2021/02/14 11:51:57 1.1
+++ pkgsrc/graphics/charls/PLIST 2022/11/12 18:59:20 1.2
@@ -1,15 +1,16 @@ @@ -1,15 +1,16 @@
1@comment $NetBSD: PLIST,v 1.1 2021/02/14 11:51:57 nros Exp $ 1@comment $NetBSD: PLIST,v 1.2 2022/11/12 18:59:20 nros Exp $
2include/charls/annotations.h 2include/charls/annotations.h
3include/charls/api_abi.h 3include/charls/api_abi.h
4include/charls/charls.h 4include/charls/charls.h
5include/charls/charls_jpegls_decoder.h 5include/charls/charls_jpegls_decoder.h
6include/charls/charls_jpegls_encoder.h 6include/charls/charls_jpegls_encoder.h
7include/charls/jpegls_error.h 7include/charls/jpegls_error.h
8include/charls/public_types.h 8include/charls/public_types.h
9include/charls/version.h 9include/charls/version.h
10lib/cmake/charls/charlsConfig-release.cmake 10lib/cmake/charls/charlsConfig-release.cmake
11lib/cmake/charls/charlsConfig.cmake 11lib/cmake/charls/charlsConfig.cmake
 12lib/cmake/charls/charlsConfigVersion.cmake
12lib/libcharls.so 13lib/libcharls.so
13lib/libcharls.so.2 14lib/libcharls.so.2
14lib/libcharls.so.${PKGVERSION} 15lib/libcharls.so.${PKGVERSION}
15lib/pkgconfig/charls.pc 16lib/pkgconfig/charls.pc

cvs diff -r1.1 -r1.2 pkgsrc/graphics/charls/buildlink3.mk (expand / switch to unified diff)

--- pkgsrc/graphics/charls/buildlink3.mk 2021/02/14 11:51:57 1.1
+++ pkgsrc/graphics/charls/buildlink3.mk 2022/11/12 18:59:20 1.2
@@ -1,12 +1,13 @@ @@ -1,12 +1,13 @@
1# $NetBSD: buildlink3.mk,v 1.1 2021/02/14 11:51:57 nros Exp $ 1# $NetBSD: buildlink3.mk,v 1.2 2022/11/12 18:59:20 nros Exp $
2 2
3BUILDLINK_TREE+= charls 3BUILDLINK_TREE+= charls
4 4
5.if !defined(CHARLS_BUILDLINK3_MK) 5.if !defined(CHARLS_BUILDLINK3_MK)
6CHARLS_BUILDLINK3_MK:= 6CHARLS_BUILDLINK3_MK:=
7 7
8BUILDLINK_API_DEPENDS.charls+= charls>=2.2.0 8BUILDLINK_API_DEPENDS.charls+= charls>=2.2.0
 9BUILDLINK_ABI_DEPENDS.charls?= charls>=2.3.4
9BUILDLINK_PKGSRCDIR.charls?= ../../graphics/charls 10BUILDLINK_PKGSRCDIR.charls?= ../../graphics/charls
10.endif # CHARLS_BUILDLINK3_MK 11.endif # CHARLS_BUILDLINK3_MK
11 12
12BUILDLINK_TREE+= -charls 13BUILDLINK_TREE+= -charls

cvs diff -r1.4 -r1.5 pkgsrc/graphics/charls/distinfo (expand / switch to unified diff)

--- pkgsrc/graphics/charls/distinfo 2021/10/26 10:46:01 1.4
+++ pkgsrc/graphics/charls/distinfo 2022/11/12 18:59:20 1.5
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.4 2021/10/26 10:46:01 nia Exp $ 1$NetBSD: distinfo,v 1.5 2022/11/12 18:59:20 nros Exp $
2 2
3BLAKE2s (charls-2.2.0.tar.gz) = 022437844c0ed572affb01053d246c5656b32edb806d6d3e7ce86fcd53033e9b 3BLAKE2s (charls-2.3.4.tar.gz) = 7d2427a1ba58f596668a82d0dfb066118a88690ed03712641acb9b4fde3b1f11
4SHA512 (charls-2.2.0.tar.gz) = 387293f89bc30b50a59de7d5af23d0047bcdba89bd48cdb81e0437adabbfc9e19e135749129334a9db5c3ae5ad0c75b489e6e6545ee0c8134fc432153413793e 4SHA512 (charls-2.3.4.tar.gz) = 3f6e1a054d5f7cfa5309e3d1b280d0dbaaeac7f06b08619cefe15677367631d9f6eb96e54b3e5ec921ac50793a570c39178c3e4b52ce9837b731bbccd6a3d0ad
5Size (charls-2.2.0.tar.gz) = 9827594 bytes 5Size (charls-2.3.4.tar.gz) = 9483782 bytes