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 <yegorslists@googlemail.com>
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Yegor Yefremov
2026-10-06 13:07:13 +02:00
committed by Thomas Petazzoni
parent 2a69b8c7ed
commit 7e05cbe06e
5 changed files with 34 additions and 0 deletions

View File

@@ -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/

View File

@@ -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"

10
package/libaec/Config.in Normal file
View File

@@ -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

View File

@@ -0,0 +1,3 @@
# Locally computed
sha256 cc7b93be9002e25a88b45d6b8d5f6120756cb5e1000613f91d803ce0beba24d9 libaec-1.1.7.tar.gz
sha256 9fdabba96fbc46af0ca018f86329f1e06e873b25801732001128d5afca265e36 LICENSE.txt

19
package/libaec/libaec.mk Normal file
View File

@@ -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))