Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yegor Yefremov via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: Shubham Chakraborty <chakrabortyshubham66@gmail.com>,
	"Ernesto L . Williams Jr" <realcontrols@gmail.com>
Subject: [Buildroot] [PATCH 1/2] package/libaec: new package
Date: Tue,  6 Oct 2026 13:07:13 +0200	[thread overview]
Message-ID: <20261006110714.3242851-2-yegorslists@gmail.com> (raw)
In-Reply-To: <20261006110714.3242851-1-yegorslists@gmail.com>

From: Yegor Yefremov <yegorslists@googlemail.com>

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
---
 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 32ac338dc8..bde955ec6a 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3567,6 +3567,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 a82e369aff..0585bacccf 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1617,6 +1617,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))
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-10-06 11:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-06 11:07 [Buildroot] [PATCH 0/2] package/szip: replace with libaec Yegor Yefremov via buildroot
2026-10-06 11:07 ` Yegor Yefremov via buildroot [this message]
2026-10-06 11:07 ` [Buildroot] [PATCH 2/2] package/szip: remove package Yegor Yefremov via buildroot
2026-10-11  7:07 ` [Buildroot] [PATCH 0/2] package/szip: replace with libaec Thomas Petazzoni via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261006110714.3242851-2-yegorslists@gmail.com \
    --to=buildroot@buildroot.org \
    --cc=chakrabortyshubham66@gmail.com \
    --cc=realcontrols@gmail.com \
    --cc=yegorslists@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox