Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Thomas Orgis (8ab0d7f48a6efd6e11f0bd04f22bb0d238f99053)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Thomas Orgis <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Thomas Orgis (8ab0d7f48a6efd6e11f0bd04f22bb0d238f99053)
  • Date: Sun, 1 Jun 2025 13:18:20 +0000

GIT changes to master grimoire by Thomas Orgis <sobukus AT sourcemage.org>:

audio-libs/libsndfile/CONFIGURE | 7 ++-
audio-libs/libsndfile/DEPENDS | 5 ++
audio-libs/libsndfile/DETAILS | 6 +-
audio-libs/libsndfile/HISTORY | 5 ++
audio-libs/libsndfile/PRE_BUILD | 3 +
audio-libs/libsndfile/patches/01-c23-bool.patch | 51
++++++++++++++++++++++++
6 files changed, 72 insertions(+), 5 deletions(-)

New commits:
commit 8ab0d7f48a6efd6e11f0bd04f22bb0d238f99053
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>

libsndfile: version 1.2.2 with MPEG support and gcc15 fix

diff --git a/audio-libs/libsndfile/CONFIGURE b/audio-libs/libsndfile/CONFIGURE
index d1b0f34..8673692 100755
--- a/audio-libs/libsndfile/CONFIGURE
+++ b/audio-libs/libsndfile/CONFIGURE
@@ -1,7 +1,10 @@
config_query_option LIBSNDFILE_OPTS "Enable support for large files?" y \
"--enable-largefile" \
- "--disable-largefile"
+ "--disable-largefile" &&

config_query_option LIBSNDFILE_OPTS "Enable use of FLAC, Ogg and Vorbis?" y \
"--enable-external-libs" \
- "--disable-external-libs"
+ "--disable-external-libs" &&
+config_query_option LIBSNDFILE_OPTS "Enable MPEG (via libmpg123 & lame)?" y \
+ "--enable-mpeg" \
+ "--disable-mpeg"
diff --git a/audio-libs/libsndfile/DEPENDS b/audio-libs/libsndfile/DEPENDS
index c4bf74b..1fd7f12 100755
--- a/audio-libs/libsndfile/DEPENDS
+++ b/audio-libs/libsndfile/DEPENDS
@@ -12,6 +12,11 @@ if list_find "$LIBSNDFILE_OPTS" "--enable-external-libs";
then
depends flac
fi &&

+if list_find "$LIBSNDFILE_OPTS" "--enable-mpeg"; then
+ depends mpg123 &&
+ depends lame
+fi &&
+
optional_depends sqlite \
"--enable-sqlite" \
"--disable-sqlite" \
diff --git a/audio-libs/libsndfile/DETAILS b/audio-libs/libsndfile/DETAILS
index c5887a2..6ea56a6 100755
--- a/audio-libs/libsndfile/DETAILS
+++ b/audio-libs/libsndfile/DETAILS
@@ -1,10 +1,10 @@
SPELL=libsndfile
- VERSION=1.0.31
+ VERSION=1.2.2
SECURITY_PATCH=6
- SOURCE=$SPELL-$VERSION.tar.bz2
+ SOURCE=$SPELL-$VERSION.tar.xz
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"

SOURCE_URL=https://github.com/$SPELL/$SPELL/releases/download/$VERSION/$SOURCE
-
SOURCE_HASH=sha512:62202092e5cac6346fd3c0a977380e9bf888fc59d08c9c9707dc254a8ef6ed6356da2ab0430bb970c7b06ba5bb1dafa5d7b0fe13898834c1fe4acb16f409f0e1
+
SOURCE_HASH=sha512:a6e3ea3ac5d91befaa99f6a31a3fac44e7b7c11f1de4698167317a461d5a19a2651d47486a920b34400f18367b4f6173bf0c1c9ba80eb682cece1b5beee352a0
WEB_SITE=https://github.com/libsndfile/libsndfile
ENTERED=20020517
LICENSE[0]=LGPL
diff --git a/audio-libs/libsndfile/HISTORY b/audio-libs/libsndfile/HISTORY
index 5856442..5e3c478 100644
--- a/audio-libs/libsndfile/HISTORY
+++ b/audio-libs/libsndfile/HISTORY
@@ -1,3 +1,8 @@
+2025-05-31 Thomas Orgis <sobukus AT sourcemage.org>
+ * DETAILS: version 1.2.2
+ * CONFIGURE, DEPENDS: add MPEG support
+ * PRE_BUILD, patches/01-c23-bool.patch: Fix with gcc15.
+
2022-07-27 Vlad Glagolev <stealth AT sourcemage.org>
* DEPENDS: switch to PKG-CONFIG provider (automated)

diff --git a/audio-libs/libsndfile/PRE_BUILD b/audio-libs/libsndfile/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/audio-libs/libsndfile/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git a/audio-libs/libsndfile/patches/01-c23-bool.patch
b/audio-libs/libsndfile/patches/01-c23-bool.patch
new file mode 100644
index 0000000..6bc1342
--- /dev/null
+++ b/audio-libs/libsndfile/patches/01-c23-bool.patch
@@ -0,0 +1,51 @@
+C23 defines bool stuff as keywords. Use stdbool.h and make things
+work with gcc15 by default.
+
+
+diff -ru libsndfile-1.2.2/src/ALAC/alac_decoder.c
libsndfile-1.2.2.fix/src/ALAC/alac_decoder.c
+--- libsndfile-1.2.2/src/ALAC/alac_decoder.c 2021-05-17 11:12:28.000000000
+0200
++++ libsndfile-1.2.2.fix/src/ALAC/alac_decoder.c 2025-06-01
15:13:38.288859954 +0200
+@@ -27,6 +27,7 @@
+ #include <stdlib.h>
+ #include <stddef.h>
+ #include <string.h>
++#include <stdbool.h>
+
+ #include "alac_codec.h"
+
+@@ -38,11 +39,6 @@
+ #include "ALACBitUtilities.h"
+ #include "EndianPortable.h"
+
+-typedef enum
+-{ false = 0,
+- true = 1
+-} bool ;
+-
+ // constants/data
+ const uint32_t kMaxBitDepth = 32 ; // max allowed bit
depth is 32
+
+diff -ru libsndfile-1.2.2/src/ALAC/alac_encoder.c
libsndfile-1.2.2.fix/src/ALAC/alac_encoder.c
+--- libsndfile-1.2.2/src/ALAC/alac_encoder.c 2021-05-17 11:12:28.000000000
+0200
++++ libsndfile-1.2.2.fix/src/ALAC/alac_encoder.c 2025-06-01
15:11:42.906859968 +0200
+@@ -31,6 +31,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdbool.h>
+
+ #include "sfendian.h"
+
+@@ -44,12 +45,6 @@
+ #include "ALACAudioTypes.h"
+ #include "EndianPortable.h"
+
+-typedef enum
+-{
+- false = 0,
+- true = 1
+-} bool ;
+-
+ static void GetConfig (ALAC_ENCODER *p, ALACSpecificConfig * config) ;
+
+ static int32_t EncodeStereo (ALAC_ENCODER *p, struct BitBuffer *
bitstream, const int32_t * input, uint32_t stride, uint32_t channelIndex,
uint32_t numSamples) ;


  • [[SM-Commit] ] GIT changes to master grimoire by Thomas Orgis (8ab0d7f48a6efd6e11f0bd04f22bb0d238f99053), Thomas Orgis, 06/01/2025

Archive powered by MHonArc 2.6.24.

Top of Page