Sun Mar 21 20:05:17 2021 UTC ()
openal-soft: updated to 1.21.1

openal-soft-1.21.1:

Improved alext.h's detection of standard types.

Improved slightly the local source position when the listener and source
are near each other.

Improved click/pop prevention for sounds that stop prematurely.

Fixed compilation for Windows ARM targets with MSVC.

Fixed ARM NEON detection on Windows.

Fixed CoreAudio capture when the requested sample rate doesn't match the
system configuration.

Fixed OpenSL capture desyncing from the internal capture buffer.

Fixed sources missing a batch update when applied after quickly restarting
the source.

Fixed missing source stop events when stopping a paused source.

Added capture support to the experimental Oboe backend.

openal-soft-1.21.0:

Updated library codebase to C++14.

Implemented the AL_SOFT_effect_target extension.

Implemented the AL_SOFT_events extension.

Implemented the ALC_SOFT_loopback_bformat extension.

Improved memory use for mixing voices.

Improved detection of NEON capabilities.

Improved handling of PulseAudio devices that lack manual start control.

Improved mixing performance with PulseAudio.

Improved high-frequency scaling quality for the HRTF B-Format decoder.

Improved makemhr's HRIR delay calculation.

Improved WASAPI capture of mono formats with multichannel input.

Reimplemented the modulation stage for reverb.

Enabled real-time mixing priority by default, for backends that use the
setting. It can still be disabled in the config file.

Enabled dual-band processing for the built-in quad and 7.1 output decoders.

Fixed a potential crash when deleting an effect slot immediately after the
last source using it stops.

Fixed building with the static runtime on MSVC.

Fixed using source stereo angles outside of -pi...+pi.

Fixed the buffer processed event count for sources that start with empty
buffers.

Fixed trying to open an unopenable WASAPI device causing all devices to
stop working.

Fixed stale devices when re-enumerating WASAPI devices.

Fixed using unicode paths with the log file on Windows.

Fixed DirectSound capture reporting bad sample counts or erroring when
reading samples.

Added an in-progress extension for a callback-driven buffer type.

Added an in-progress extension for higher-order B-Format buffers.

Added an in-progress extension for convolution reverb.

Added an experimental Oboe backend for Android playback. This requires the
Oboe sources at build time, so that it's built as a static library included
in libopenal.

Added an option for auto-connecting JACK ports.

Added greater-than-stereo support to the SoundIO backend.

Modified the mixer to be fully asynchronous with the external API, and
should now be real-time safe. Although alcRenderSamplesSOFT is not due to
locking to check the device handle validity.

Modified the UHJ encoder to use an all-pass FIR filter that's less harmful
to non-filtered signal phase.

Converted examples from SDL_sound to libsndfile. To avoid issues when
combining SDL2 and SDL_sound.

Worked around a 32-bit GCC/MinGW bug with TLS destructors. See:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83562

Reduced the maximum number of source sends from 16 to 6.

Removed the QSA backend. It's been broken for who knows how long.

Got rid of the compile-time native-tools targets, using cmake and global
initialization instead. This should make cross-compiling less troublesome.


(adam)
diff -r1.18 -r1.19 pkgsrc/audio/openal-soft/Makefile
diff -r1.5 -r1.6 pkgsrc/audio/openal-soft/PLIST
diff -r1.7 -r1.8 pkgsrc/audio/openal-soft/distinfo
diff -r0 -r1.3 pkgsrc/audio/openal-soft/patches/patch-CMakeLists.txt

cvs diff -r1.18 -r1.19 pkgsrc/audio/openal-soft/Makefile (expand / switch to unified diff)

--- pkgsrc/audio/openal-soft/Makefile 2021/02/07 06:30:14 1.18
+++ pkgsrc/audio/openal-soft/Makefile 2021/03/21 20:05:17 1.19
@@ -1,60 +1,59 @@ @@ -1,60 +1,59 @@
1# $NetBSD: Makefile,v 1.18 2021/02/07 06:30:14 ryoon Exp $ 1# $NetBSD: Makefile,v 1.19 2021/03/21 20:05:17 adam Exp $
2 2
3DISTNAME= openal-soft-1.20.1 3DISTNAME= openal-soft-1.21.1
4PKGREVISION= 5 
5CATEGORIES= audio 4CATEGORIES= audio
6MASTER_SITES= https://kcat.strangesoft.net/openal-releases/ 5MASTER_SITES= https://openal-soft.org/openal-releases/
7EXTRACT_SUFX= .tar.bz2 6EXTRACT_SUFX= .tar.bz2
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://kcat.strangesoft.net/openal.html 9HOMEPAGE= https://openal-soft.org/
11COMMENT= Software implementation of the OpenAL 3D audio API 10COMMENT= Software implementation of the OpenAL 3D audio API
12LICENSE= gnu-lgpl-v2 11LICENSE= gnu-lgpl-v2
13 12
14USE_CMAKE= yes 13USE_CMAKE= yes
15USE_LANGUAGES= c c++11 14USE_LANGUAGES= c c++14
16USE_TOOLS+= pkg-config gmake 15USE_TOOLS+= pkg-config gmake
17 16
18# https://github.com/kcat/openal-soft/issues/347 17# https://github.com/kcat/openal-soft/issues/347
19GCC_REQD+= 5 18GCC_REQD+= 5
20 19
21MAKE_JOBS_SAFE= no 20PKGCONFIG_OVERRIDE+= openal.pc.in
22 
23PKG_SYSCONFSUBDIR= openal 21PKG_SYSCONFSUBDIR= openal
24 22
25CMAKE_ARGS+= -DALSOFT_EXAMPLES=OFF 23CMAKE_ARGS+= -DALSOFT_EXAMPLES=OFF
26CMAKE_ARGS+= -DALSOFT_NO_CONFIG_UTIL=ON 24CMAKE_ARGS+= -DALSOFT_NO_CONFIG_UTIL=ON
27 25
28CFLAGS+= -DSYS_CONF_DIR="\"${PKG_SYSCONFDIR}\"" 26CFLAGS+= -DSYS_CONF_DIR="\"${PKG_SYSCONFDIR}\""
29CFLAGS.NetBSD+= -D_NETBSD_SOURCE 27CFLAGS.NetBSD+= -D_NETBSD_SOURCE
30CFLAGS.SunOS+= -D__EXTENSIONS__ 28CFLAGS.SunOS+= -D__EXTENSIONS__
31 29
32CONF_FILES+= ${PREFIX}/share/openal/alsoftrc.sample ${PKG_SYSCONFDIR}/alsoft.conf 30CONF_FILES+= ${PREFIX}/share/openal/alsoftrc.sample ${PKG_SYSCONFDIR}/alsoft.conf
33 31
34.include "../../mk/bsd.prefs.mk" 32.include "../../mk/bsd.prefs.mk"
35 33
36.if ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" 34.if ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD"
37CMAKE_ARGS+= -DALSOFT_BACKEND_SOLARIS=ON 35CMAKE_ARGS+= -DALSOFT_BACKEND_SOLARIS=ON
38CMAKE_ARGS+= -DALSOFT_REQUIRE_SOLARIS=ON 36CMAKE_ARGS+= -DALSOFT_REQUIRE_SOLARIS=ON
39.endif 37.endif
40 38
41.include "../../mk/oss.buildlink3.mk" 39.include "../../mk/oss.buildlink3.mk"
42 40
43.if ${OSS_TYPE} != "none" 41.if ${OSS_TYPE} != "none"
44CMAKE_ARGS+= -DALSOFT_BACKEND_OSS=ON 42CMAKE_ARGS+= -DALSOFT_BACKEND_OSS=ON
45CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS=ON 43CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS=ON
46SUBST_CLASSES+= oss 44SUBST_CLASSES+= oss
47SUBST_STAGE.oss= pre-configure 45SUBST_STAGE.oss= pre-configure
48SUBST_MESSAGE.oss= Fixing default OSS device references. 46SUBST_MESSAGE.oss= Fixing default OSS device references.
49SUBST_FILES.oss= alc/backends/oss.cpp 47SUBST_FILES.oss= alc/backends/oss.cpp
50SUBST_SED.oss= -e 's,/dev/dsp,${DEVOSSAUDIO},' 48SUBST_SED.oss= -e 's,/dev/dsp,${DEVOSSAUDIO},'
51.endif 49.endif
52 50
 51.include "options.mk"
53 52
54PKGCONFIG_OVERRIDE+= openal.pc.in 53post-install:
 54 ${RM} ${DESTDIR}${PREFIX}/include/AL/al.h.orig
55 55
56.include "options.mk" 
57.include "../../audio/libmysofa/buildlink3.mk" 56.include "../../audio/libmysofa/buildlink3.mk"
58.include "../../mk/dlopen.buildlink3.mk" 57.include "../../mk/dlopen.buildlink3.mk"
59.include "../../mk/pthread.buildlink3.mk" 58.include "../../mk/pthread.buildlink3.mk"
60.include "../../mk/bsd.pkg.mk" 59.include "../../mk/bsd.pkg.mk"

cvs diff -r1.5 -r1.6 pkgsrc/audio/openal-soft/PLIST (expand / switch to unified diff)

--- pkgsrc/audio/openal-soft/PLIST 2020/01/25 14:58:13 1.5
+++ pkgsrc/audio/openal-soft/PLIST 2021/03/21 20:05:17 1.6
@@ -1,25 +1,24 @@ @@ -1,25 +1,24 @@
1@comment $NetBSD: PLIST,v 1.5 2020/01/25 14:58:13 nia Exp $ 1@comment $NetBSD: PLIST,v 1.6 2021/03/21 20:05:17 adam Exp $
2bin/altonegen 
3bin/makemhr 2bin/makemhr
4bin/openal-info 3bin/openal-info
5include/AL/al.h 4include/AL/al.h
6include/AL/alc.h 5include/AL/alc.h
7include/AL/alext.h 6include/AL/alext.h
8include/AL/efx-creative.h 7include/AL/efx-creative.h
9include/AL/efx-presets.h 8include/AL/efx-presets.h
10include/AL/efx.h 9include/AL/efx.h
11lib/cmake/OpenAL/OpenALConfig-relwithdebinfo.cmake 10lib/cmake/OpenAL/OpenALConfig-relwithdebinfo.cmake
12lib/cmake/OpenAL/OpenALConfig.cmake 11lib/cmake/OpenAL/OpenALConfig.cmake
13lib/libopenal.so 12lib/libopenal.so
14lib/libopenal.so.1 
15lib/libopenal.so.${PKGVERSION} 13lib/libopenal.so.${PKGVERSION}
 14lib/libopenal.so.1
16lib/pkgconfig/openal.pc 15lib/pkgconfig/openal.pc
17share/openal/alsoftrc.sample 16share/openal/alsoftrc.sample
18share/openal/hrtf/Default HRTF.mhr 17share/openal/hrtf/Default HRTF.mhr
19share/openal/presets/3D7.1.ambdec 18share/openal/presets/3D7.1.ambdec
20share/openal/presets/hexagon.ambdec 19share/openal/presets/hexagon.ambdec
21share/openal/presets/itu5.1-nocenter.ambdec 20share/openal/presets/itu5.1-nocenter.ambdec
22share/openal/presets/itu5.1.ambdec 21share/openal/presets/itu5.1.ambdec
23share/openal/presets/presets.txt 22share/openal/presets/presets.txt
24share/openal/presets/rectangle.ambdec 23share/openal/presets/rectangle.ambdec
25share/openal/presets/square.ambdec 24share/openal/presets/square.ambdec

cvs diff -r1.7 -r1.8 pkgsrc/audio/openal-soft/distinfo (expand / switch to unified diff)

--- pkgsrc/audio/openal-soft/distinfo 2020/04/09 13:35:21 1.7
+++ pkgsrc/audio/openal-soft/distinfo 2021/03/21 20:05:17 1.8
@@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
1$NetBSD: distinfo,v 1.7 2020/04/09 13:35:21 jperkin Exp $ 1$NetBSD: distinfo,v 1.8 2021/03/21 20:05:17 adam Exp $
2 2
3SHA1 (openal-soft-1.20.1.tar.bz2) = 77c3d2736adf4058ec3e19f26e51fac9b5412ac1 3SHA1 (openal-soft-1.21.1.tar.bz2) = f39b81a9ce22419e106259cf424405291520b8f3
4RMD160 (openal-soft-1.20.1.tar.bz2) = dd53b9aac8710db7344f16fb49c93f9f73af8b6d 4RMD160 (openal-soft-1.21.1.tar.bz2) = b5b96f0e36d4a29303d62a484d7c6c1fe0798de6
5SHA512 (openal-soft-1.20.1.tar.bz2) = a8a03a2162b5d35e66adc079e81d7fa075b83a3ee1cec3412cb40f7789263ed8bd005beefb7ef995f464dfa43aac22ea0f547b752dfc7533ed9120a95fb92513 5SHA512 (openal-soft-1.21.1.tar.bz2) = 420eec18149a9b784daaabe8a2865de3b87d5550cf2e8e06569464d0b5ba6e51d904c18f1461af08676bf8c8b76ef270e860008d79545a5f85131299e89bffd4
6Size (openal-soft-1.20.1.tar.bz2) = 512971 bytes 6Size (openal-soft-1.21.1.tar.bz2) = 524787 bytes
 7SHA1 (patch-CMakeLists.txt) = 5469748347d548838b8e4650e1ecbabacae1f30a
7SHA1 (patch-alc_alconfig.cpp) = 0539016dadf1827e5a86700c2db5a96479a8b70d 8SHA1 (patch-alc_alconfig.cpp) = 0539016dadf1827e5a86700c2db5a96479a8b70d
8SHA1 (patch-alc_backends_alsa.cpp) = 3ee7f86e544d9b33ccbe9422eb87b9540623053a 9SHA1 (patch-alc_backends_alsa.cpp) = 3ee7f86e544d9b33ccbe9422eb87b9540623053a
9SHA1 (patch-alc_backends_solaris.cpp) = 62e7a5bddb5c4ed7f7e4c4889b2234dd778be960 10SHA1 (patch-alc_backends_solaris.cpp) = 62e7a5bddb5c4ed7f7e4c4889b2234dd778be960
10SHA1 (patch-include_AL_al.h) = 5545de5f606320b64ddd713569c9a86c8552eb46 11SHA1 (patch-include_AL_al.h) = 5545de5f606320b64ddd713569c9a86c8552eb46

File Added: pkgsrc/audio/openal-soft/patches/patch-CMakeLists.txt
$NetBSD: patch-CMakeLists.txt,v 1.3 2021/03/21 20:05:17 adam Exp $

Fix building.

--- CMakeLists.txt.orig	2021-03-21 19:49:33.000000000 +0000
+++ CMakeLists.txt
@@ -1136,9 +1136,9 @@ if(ALSOFT_EMBED_HRTF_DATA)
 
         add_custom_command(OUTPUT "${outfile}"
             COMMAND ${CMAKE_COMMAND} -D "INPUT_FILE=${infile}" -D "OUTPUT_FILE=${outfile}"
-                -D "VARIABLE_NAME=${VARNAME}" -P "${CMAKE_MODULE_PATH}/bin2h.script.cmake"
+                -D "VARIABLE_NAME=${VARNAME}" -P "${OpenAL_SOURCE_DIR}/cmake/bin2h.script.cmake"
             WORKING_DIRECTORY "${OpenAL_SOURCE_DIR}"
-            DEPENDS "${infile}" "${CMAKE_MODULE_PATH}/bin2h.script.cmake"
+            DEPENDS "${infile}" "${OpenAL_SOURCE_DIR}/cmake/bin2h.script.cmake"
             VERBATIM
         )
         set(ALC_OBJS  ${ALC_OBJS} "${outfile}")