From 7e05cbe06e50dad5c0271a9b384c997aea445e95 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Tue, 6 Oct 2026 13:07:13 +0200 Subject: [PATCH] package/libaec: new package libaec provides fast lossless compression of 1 up to 32 bit wide signed or unsigned integers. It implements the Golomb-Rice compression method under the BSD license and includes libsz, a drop-in replacement for the SZIP library with the same API (szlib.h) and soname (libsz.so.2). https://github.com/Deutsches-Klimarechenzentrum/libaec Signed-off-by: Yegor Yefremov Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/libaec/Config.in | 10 ++++++++++ package/libaec/libaec.hash | 3 +++ package/libaec/libaec.mk | 19 +++++++++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 package/libaec/Config.in create mode 100644 package/libaec/libaec.hash create mode 100644 package/libaec/libaec.mk diff --git a/DEVELOPERS b/DEVELOPERS index c6ac972854..0c03a503aa 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3569,6 +3569,7 @@ F: package/feh/ F: package/hostapd/ F: package/imlib2/ F: package/kmod/ +F: package/libaec/ F: package/libftdi1/ F: package/libical/ F: package/libmbim/ diff --git a/package/Config.in b/package/Config.in index a768b6b7b3..c5806ad2a4 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1620,6 +1620,7 @@ menu "Audio/Sound" endmenu menu "Compression and decompression" + source "package/libaec/Config.in" source "package/libarchive/Config.in" source "package/libdeflate/Config.in" source "package/libjcat/Config.in" diff --git a/package/libaec/Config.in b/package/libaec/Config.in new file mode 100644 index 0000000000..86fd770f2a --- /dev/null +++ b/package/libaec/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_LIBAEC + bool "libaec" + select BR2_HOST_CMAKE_AT_LEAST_3_26 + help + libaec provides fast lossless compression of 1 up to 32 bit + wide signed or unsigned integers (samples). It implements + Golomb-Rice compression method under the BSD license and + includes a free drop-in replacement for the SZIP library. + + https://github.com/Deutsches-Klimarechenzentrum/libaec diff --git a/package/libaec/libaec.hash b/package/libaec/libaec.hash new file mode 100644 index 0000000000..cf4984447f --- /dev/null +++ b/package/libaec/libaec.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 cc7b93be9002e25a88b45d6b8d5f6120756cb5e1000613f91d803ce0beba24d9 libaec-1.1.7.tar.gz +sha256 9fdabba96fbc46af0ca018f86329f1e06e873b25801732001128d5afca265e36 LICENSE.txt diff --git a/package/libaec/libaec.mk b/package/libaec/libaec.mk new file mode 100644 index 0000000000..d631230be6 --- /dev/null +++ b/package/libaec/libaec.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# libaec +# +################################################################################ + +LIBAEC_VERSION = 1.1.7 +LIBAEC_SITE = https://github.com/Deutsches-Klimarechenzentrum/libaec/releases/download/v$(LIBAEC_VERSION) +LIBAEC_LICENSE = BSD-2-Clause +LIBAEC_LICENSE_FILES = LICENSE.txt +LIBAEC_INSTALL_STAGING = YES + +ifeq ($(BR2_SHARED_LIBS),y) +LIBAEC_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF +else +LIBAEC_CONF_OPTS += -DBUILD_STATIC_LIBS=ON +endif + +$(eval $(cmake-package))