Package: sox-ng
Version: 14.7.1.1+ds1
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]
Hi!
I've found that in the dpkg-buildpackage native build of sox-ng,
if libsndio-dev happens to be installed, you get
sndio (OpenBSD)............yes
and if it isn't,
sndio (OpenBSD)............no
Both types of build succeed; one has sndio support built-in, the other doesn't.
My guess, to make it a module like alsa and oss, is:
diff --git a/debian/control b/debian/control
index a7df53a..3f30d04 100644
--- a/debian/control
+++ b/debian/control
@@ -23,6 +23,7 @@ Build-Depends:
libpng-dev,
libpulse-dev,
libsndfile1-dev,
+ libsndio-dev,
libspeex-dev,
libspeexdsp-dev,
libtwolame-dev,
@@ -40,7 +41,7 @@ Depends:
${misc:Depends},
${shlibs:Depends},
Suggests:
- libsox-fmt-alsa (= ${binary:Version}) [linux-any] | libsox-fmt-oss (=
${binary:Version}),
+ libsox-fmt-alsa (= ${binary:Version}) [linux-any] | libsox-fmt-oss (=
${binary:Version}) | libsox-fmt-sndio (= ${binary:Version}),
Description: Swiss army knife of sound processing
SoX is a command line utility that can convert various formats of computer
audio files in to other formats. It can also apply various effects to these
@@ -51,7 +52,7 @@ Description: Swiss army knife of sound processing
GSM and several more.
.
SoX supports most common sound architectures i.e. Alsa, OSS, and Pulse
- (respectively provided by libsox-fmt-alsa, and libsox-fmt-oss).
+ (respectively provided by libsox-fmt-alsa, libsox-fmt-oss and
libsox-fmt-sndio).
It also supports LADSPA plugins.
Package: libsox-ng3
@@ -65,7 +66,7 @@ Depends:
${shlibs:Depends},
Suggests:
ffmpeg,
- libsox-fmt-alsa [linux-any] | libsox-fmt-oss,
+ libsox-fmt-alsa [linux-any] | libsox-fmt-oss | libsox-fmt-sndio,
Description: SoX library of audio effects and processing
SoX is the swiss army knife of sound processing.
.
@@ -74,7 +75,7 @@ Description: SoX library of audio effects and processing
various effects to sound files.
.
Sound output via PulseAudio is enabled by default. Additional output plugins
- are provided by libsox-fmt-alsa, or libsox-fmt-oss.
+ are provided by libsox-fmt-alsa, libsox-fmt-oss ot libsox-fmt-sndio.
Package: libsox-dev
Architecture: any
@@ -117,6 +118,18 @@ Description: SoX OSS format I/O library
This package contains the SoX Open Sound System (OSS)
format I/O library.
+Package: libsox-fmt-sndio
+Architecture: linux-any
+Multi-Arch: same
+Section: libs
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends},
+Description: SoX sndio format I/O library
+ SoX is the swiss army knife of sound processing.
+ .
+ This package contains the SoX sndio format I/O library.
+
Package: libsox-fmt-all
Architecture: any
Multi-Arch: same
diff --git a/debian/libsox-fmt-sndio.install b/debian/libsox-fmt-sndio.install
new file mode 100644
index 0000000..ed52f97
--- /dev/null
+++ b/debian/libsox-fmt-sndio.install
@@ -0,0 +1 @@
+usr/lib/*/sox_ng/libsox_ng_fmt_sndio.so*
diff --git a/debian/rules b/debian/rules
index bf313fe..8022628 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,4 +16,5 @@ override_dh_auto_configure:
--with-distro="$(DEB_VENDOR)" \
--with-alsa=dyn \
--with-oss=dyn \
+ --with-sndio=dyn \
--with-ao=no
-- System Information:
Debian Release: 13.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.73+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled