pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/59926: Add support for audio/libsoxr to multimedia/ffmpeg*



>Number:         59926
>Category:       pkg
>Synopsis:       Add support for audio/libsoxr to multimedia/ffmpeg*
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 17 12:50:00 +0000 2026
>Originator:     Sotiris Lamprinidis
>Release:        trunk @ 20260105
>Organization:
>Environment:
NetBSD 11.0_BETA NetBSD 11.0_BETA  #4: Thu Jan 15 11:13:42 CET 2026

>Description:
ffmpeg-resampler supports high-quality resampling using libsoxr. It is trivial to add support since libsoxr already exists in PKG_OPTIONS. See the suggested patch.

DISCLAIMER: I've only built ffmpeg8, but looking at ffmpeg 5/6/7 configure script
it seems they also support libsoxr.
>How-To-Repeat:

>Fix:
Index: multimedia/ffmpeg5/options.mk
===================================================================
RCS file: /export/cvsroot/pkgsrc/multimedia/ffmpeg5/options.mk,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 options.mk
--- multimedia/ffmpeg5/options.mk       30 Dec 2025 15:31:27 -0000      1.1.1.2
+++ multimedia/ffmpeg5/options.mk       17 Jan 2026 12:38:46 -0000
@@ -7,7 +7,7 @@
 PKG_OPTIONS_GROUP.ssl=         gnutls mbedtls openssl

 PKG_SUPPORTED_OPTIONS= ass aom bluray doc fdk-aac fontconfig freetype jack \
-                       lame libvpx libwebp opencore-amr opus pulseaudio rav1e rpi rtmp \
+                       lame libsoxr libvpx libwebp opencore-amr opus pulseaudio rav1e rpi rtmp \
                        sndio speex tesseract theora vorbis x11 x264 x265 xvid
 PKG_SUGGESTED_OPTIONS= ass aom bluray freetype fontconfig gnutls lame \
                        libvpx libwebp opus speex theora vorbis x264 x265 xvid
@@ -265,6 +265,12 @@
 CONFIGURE_ARGS+=       --disable-vaapi
 .endif

+# libsoxr resampler support
+.if !empty(PKG_OPTIONS:Mlibsoxr)
+.  include "../../audio/libsoxr/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-libsoxr
+.endif
+
 # VPX support
 .if !empty(PKG_OPTIONS:Mlibvpx)
 CONFIGURE_ARGS+=       --enable-libvpx
Index: multimedia/ffmpeg6/options.mk
===================================================================
RCS file: /export/cvsroot/pkgsrc/multimedia/ffmpeg6/options.mk,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 options.mk
--- multimedia/ffmpeg6/options.mk       30 Dec 2025 15:31:28 -0000      1.1.1.2
+++ multimedia/ffmpeg6/options.mk       17 Jan 2026 12:38:39 -0000
@@ -5,7 +5,7 @@
 PKG_OPTIONS_GROUP.ssl=         gnutls mbedtls openssl

 PKG_SUPPORTED_OPTIONS= ass aom bluray doc fdk-aac fontconfig freetype jack \
-                       lame libvpx libwebp opencore-amr opus pulseaudio rav1e rpi rtmp \
+                       lame libsoxr libwebp opencore-amr opus pulseaudio rav1e rpi rtmp \
                        sndio speex tesseract theora vorbis x11 x264 x265 xvid
 PKG_SUGGESTED_OPTIONS= ass aom bluray freetype fontconfig gnutls lame \
                        libvpx libwebp opus speex theora vorbis x264 x265 xvid
@@ -261,6 +261,12 @@
 CONFIGURE_ARGS+=       --disable-vaapi
 .endif

+# libsoxr resampler support
+.if !empty(PKG_OPTIONS:Mlibsoxr)
+.  include "../../audio/libsoxr/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-libsoxr
+.endif
+
 # VPX support
 .if !empty(PKG_OPTIONS:Mlibvpx)
 CONFIGURE_ARGS+=       --enable-libvpx
Index: multimedia/ffmpeg7/options.mk
===================================================================
RCS file: /export/cvsroot/pkgsrc/multimedia/ffmpeg7/options.mk,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 options.mk
--- multimedia/ffmpeg7/options.mk       30 Dec 2025 15:31:30 -0000      1.1.1.2
+++ multimedia/ffmpeg7/options.mk       17 Jan 2026 12:38:17 -0000
@@ -5,7 +5,7 @@
 PKG_OPTIONS_GROUP.ssl=         gnutls mbedtls openssl

 PKG_SUPPORTED_OPTIONS= ass aom bluray doc fdk-aac fontconfig freetype jack \
-                       lame libvpx libwebp opencore-amr opus pulseaudio rav1e rpi rtmp \
+                       lame libsoxr libvpx libwebp opencore-amr opus pulseaudio rav1e rpi rtmp \
                        sndio speex tesseract theora vorbis x11 x264 x265 xvid
 PKG_SUGGESTED_OPTIONS= ass aom bluray freetype fontconfig gnutls lame \
                        libvpx libwebp opus speex theora vorbis x264 x265 xvid
@@ -261,6 +261,12 @@
 CONFIGURE_ARGS+=       --disable-vaapi
 .endif

+# libsoxr resampler support
+.if !empty(PKG_OPTIONS:Mlibsoxr)
+.  include "../../audio/libsoxr/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-libsoxr
+.endif
+
 # VPX support
 .if !empty(PKG_OPTIONS:Mlibvpx)
 CONFIGURE_ARGS+=       --enable-libvpx
Index: multimedia/ffmpeg8/options.mk
===================================================================
RCS file: /export/cvsroot/pkgsrc/multimedia/ffmpeg8/options.mk,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 options.mk
--- multimedia/ffmpeg8/options.mk       18 Oct 2025 13:43:59 -0000      1.1.1.1
+++ multimedia/ffmpeg8/options.mk       17 Jan 2026 12:38:55 -0000
@@ -5,7 +5,7 @@
 PKG_OPTIONS_GROUP.ssl=         gnutls mbedtls openssl

 PKG_SUPPORTED_OPTIONS= ass aom bluray doc fdk-aac fontconfig freetype jack \
-                       lame libvpx libwebp opencore-amr opus pulseaudio rav1e rpi rtmp \
+                       lame libsoxr libvpx libwebp opencore-amr opus pulseaudio rav1e rpi rtmp \
                        speex tesseract theora vorbis x11 x264 x265 xvid
 PKG_SUGGESTED_OPTIONS= ass aom bluray freetype fontconfig gnutls lame \
                        libvpx libwebp opus speex theora vorbis x264 x265 xvid
@@ -254,6 +254,12 @@
 CONFIGURE_ARGS+=       --disable-vaapi
 .endif

+# libsoxr resampler support
+.if !empty(PKG_OPTIONS:Mlibsoxr)
+.  include "../../audio/libsoxr/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-libsoxr
+.endif
+
 # VPX support
 .if !empty(PKG_OPTIONS:Mlibvpx)
 CONFIGURE_ARGS+=       --enable-libvpx



Home | Main Index | Thread Index | Old Index