diff --git a/audio/openal-soft/Makefile b/audio/openal-soft/Makefile index c16c60433049..a8de104bba5f 100644 --- a/audio/openal-soft/Makefile +++ b/audio/openal-soft/Makefile @@ -1,121 +1,126 @@ PORTNAME= openal-soft -PORTVERSION= 1.25.1 +PORTVERSION= 1.25.2 CATEGORIES= audio MASTER_SITES= https://openal-soft.org/openal-releases/ MAINTAINER= multimedia@FreeBSD.org COMMENT= Software implementation of the OpenAL specification WWW= https://openal-soft.org/ LICENSE= LGPL20+ LICENSE_FILE= ${WRKSRC}/COPYING USES= cmake compiler:c++20-lang pkgconfig tar:bzip2 USE_LDCONFIG= yes CMAKE_ARGS= -DCMAKE_INSTALL_DATADIR:STRING="${PREFIX}/etc" CMAKE_ON= ALSOFT_BACKEND_WAVE CMAKE_OFF= ALSOFT_BACKEND_ALSA \ ALSOFT_DLOPEN \ ALSOFT_EXAMPLES \ ALSOFT_ENABLE_MODULES \ ALSOFT_REQUIRE_SOLARIS \ + ALSOFT_RTKIT \ CMAKE_CXX_SCAN_FOR_MODULES # Use pthread instead of C11 threads CFLAGS+= -D__STDC_NO_THREADS__ # do not link with librt and libdl. LDFLAGS+= -Wl,--as-needed LDFLAGS_i386= -Wl,-z,notext PLIST_SUB= SOVERSION=${PORTVERSION} OPTIONS_DEFINE= CONFIG EXAMPLES JACK OSS PIPEWIRE PORTAUDIO \ - PULSEAUDIO RTKIT SDL SNDIO UTILS + PULSEAUDIO SNDIO UTILS OPTIONS_DEFINE_aarch64= SIMD OPTIONS_DEFINE_amd64= SIMD OPTIONS_DEFINE_i386= SIMD -OPTIONS_DEFAULT= OSS RTKIT UTILS +OPTIONS_DEFAULT= OSS UTILS OPTIONS_DEFAULT_aarch64=SIMD OPTIONS_DEFAULT_amd64= SIMD OPTIONS_DEFAULT_i386= SIMD - +OPTIONS_RADIO= SDL +OPTIONS_RADIO_SDL= SDL2 SDL3 OPTIONS_SUB= yes CONFIG_DESC= Install configuration utility (needs Qt6) RTKIT_DESC= Real-time priority support (Linux only, requires D-Bus) +SDL2_DESC= ${SDL_DESC} v2 +SDL3_DESC= ${SDL_DESC} v3 UTILS_DESC= Build and install utility programs CONFIG_IMPLIES= UTILS CONFIG_USES= qt:6 CONFIG_USE= QT=base CONFIG_CMAKE_BOOL_OFF= ALSOFT_NO_CONFIG_UTIL JACK_LIB_DEPENDS= libjack.so:audio/jack JACK_CMAKE_BOOL= ALSOFT_BACKEND_JACK ALSOFT_REQUIRE_JACK OSS_CMAKE_BOOL= ALSOFT_BACKEND_OSS ALSOFT_REQUIRE_OSS PIPEWIRE_LIB_DEPENDS= libpipewire-0.3.so:multimedia/pipewire PIPEWIRE_USES= localbase:ldflags PIPEWIRE_CMAKE_BOOL= ALSOFT_BACKEND_PIPEWIRE ALSOFT_REQUIRE_PIPEWIRE PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio PORTAUDIO_CMAKE_BOOL= ALSOFT_BACKEND_PORTAUDIO ALSOFT_REQUIRE_PORTAUDIO PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_CMAKE_BOOL= ALSOFT_BACKEND_PULSEAUDIO ALSOFT_REQUIRE_PULSEAUDIO -RTKIT_LIB_DEPENDS= libdbus-1.so:devel/dbus -RTKIT_CMAKE_BOOL= ALSOFT_RTKIT +SDL2_USES= sdl +SDL2_USE= SDL=sdl2 +SDL2_CMAKE_BOOL= ALSOFT_BACKEND_SDL2 ALSOFT_REQUIRE_SDL2 -SDL_USES= sdl -SDL_USE= SDL=sdl2 -SDL_CMAKE_BOOL= ALSOFT_BACKEND_SDL2 ALSOFT_REQUIRE_SDL2 +SDL3_USES= sdl +SDL3_USE= SDL=sdl3 +SDL3_CMAKE_BOOL= ALSOFT_BACKEND_SDL3 ALSOFT_REQUIRE_SDL3 SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio SNDIO_CMAKE_BOOL= ALSOFT_BACKEND_SNDIO ALSOFT_REQUIRE_SNDIO UTILS_LIB_DEPENDS= libmysofa.so:audio/libmysofa UTILS_CMAKE_BOOL= ALSOFT_UTILS .include .if ${PORT_OPTIONS:MSIMD} . if !${MACHINE_CPU:Msse} CMAKE_OFF+= ALSOFT_CPUEXT_SSE . endif . if !${MACHINE_CPU:Msse2} CMAKE_OFF+= ALSOFT_CPUEXT_SSE2 . endif . if !${MACHINE_CPU:Msse3} CMAKE_OFF+= ALSOFT_CPUEXT_SSE3 . endif . if !${MACHINE_CPU:Msse41} CMAKE_OFF+= ALSOFT_CPUEXT_SSE4_1 . endif .else CMAKE_OFF+= ALSOFT_CPUEXT_NEON \ ALSOFT_CPUEXT_SSE \ ALSOFT_CPUEXT_SSE2 \ ALSOFT_CPUEXT_SSE3 \ ALSOFT_CPUEXT_SSE4_1 .endif # The following is actually meant for lld 15.0 and later, but the ports # framework does not support LINKER_TYPE and LINKER_VERSION yet. .if ${COMPILER_TYPE} == "clang" # Turn off checking of dynamic relocations, to avoid lld diagnostics about # possibly incorrect addend values. LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations .endif post-patch: @${REINPLACE_CMD} 's|/etc/openal|${ETCDIR}|' \ ${WRKSRC}/alc/alconfig.cpp post-install-EXAMPLES-on: (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ ${STAGEDIR}${EXAMPLESDIR}) .include diff --git a/audio/openal-soft/distinfo b/audio/openal-soft/distinfo index 290decb63d58..54e159d468e4 100644 --- a/audio/openal-soft/distinfo +++ b/audio/openal-soft/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1769146884 -SHA256 (openal-soft-1.25.1.tar.bz2) = 4c2aff6f81975f46ecc5148d092c4948c71dbfb76e4b9ba4bf1fce287f47d4b5 -SIZE (openal-soft-1.25.1.tar.bz2) = 1119330 +TIMESTAMP = 1786340372 +SHA256 (openal-soft-1.25.2.tar.bz2) = 1dbaac44e7579d5bc8847ca8db4b2e8b9fd3961041f35ee20def4958301e1089 +SIZE (openal-soft-1.25.2.tar.bz2) = 1132689 diff --git a/audio/openal-soft/files/patch-CMakeLists.txt b/audio/openal-soft/files/patch-CMakeLists.txt index a500c699a2c3..6fd891197b53 100644 --- a/audio/openal-soft/files/patch-CMakeLists.txt +++ b/audio/openal-soft/files/patch-CMakeLists.txt @@ -1,25 +1,23 @@ ---- CMakeLists.txt.orig 2025-12-22 09:17:45 UTC +--- CMakeLists.txt.orig 2026-05-12 02:21:07 UTC +++ CMakeLists.txt -@@ -1876,19 +1876,19 @@ if(ALSOFT_INSTALL_CONFIG) +@@ -2025,17 +2025,17 @@ if(ALSOFT_INSTALL_CONFIG) if(ALSOFT_INSTALL_CONFIG) install(FILES alsoftrc.sample - DESTINATION ${CMAKE_INSTALL_DATADIR}/openal) + DESTINATION ${CMAKE_INSTALL_DATADIR}/openal-soft) message(STATUS "Installing sample configuration") endif() - if(ALSOFT_INSTALL_HRTF_DATA) install(DIRECTORY hrtf - DESTINATION ${CMAKE_INSTALL_DATADIR}/openal) + DESTINATION ${CMAKE_INSTALL_DATADIR}/openal-soft) message(STATUS "Installing HRTF data files") endif() - if(ALSOFT_INSTALL_AMBDEC_PRESETS) install(DIRECTORY presets - DESTINATION ${CMAKE_INSTALL_DATADIR}/openal) + DESTINATION ${CMAKE_INSTALL_DATADIR}/openal-soft) message(STATUS "Installing AmbDec presets") endif() message(STATUS "") diff --git a/audio/openal-soft/pkg-plist b/audio/openal-soft/pkg-plist index 883989b43b16..1eb46b0486a1 100644 --- a/audio/openal-soft/pkg-plist +++ b/audio/openal-soft/pkg-plist @@ -1,44 +1,43 @@ %%CONFIG%%bin/alsoft-config %%UTILS%%bin/makemhr %%UTILS%%bin/openal-info %%ETCDIR%%/alsoftrc.sample %%ETCDIR%%/hrtf/Default HRTF.mhr %%ETCDIR%%/presets/3D7.1.ambdec %%ETCDIR%%/presets/hex-quad.ambdec %%ETCDIR%%/presets/hexagon.ambdec %%ETCDIR%%/presets/itu5.1-nocenter.ambdec %%ETCDIR%%/presets/itu5.1.ambdec %%ETCDIR%%/presets/presets.txt %%ETCDIR%%/presets/rectangle.ambdec %%ETCDIR%%/presets/square.ambdec include/AL/al.h include/AL/alc.h include/AL/alext.h -include/AL/efx-creative.h include/AL/efx-presets.h include/AL/efx.h lib/cmake/OpenAL/OpenALConfig.cmake lib/cmake/OpenAL/OpenALTargets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/OpenAL/OpenALTargets.cmake lib/libopenal.so lib/libopenal.so.1 lib/libopenal.so.%%SOVERSION%% libdata/pkgconfig/openal.pc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/alconvolve.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/aldebug.cpp %%PORTEXAMPLES%%%%EXAMPLESDIR%%/aldirect.cpp %%PORTEXAMPLES%%%%EXAMPLESDIR%%/alffplay.cpp %%PORTEXAMPLES%%%%EXAMPLESDIR%%/alhrtf.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/allafplay.cpp %%PORTEXAMPLES%%%%EXAMPLESDIR%%/allatency.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/alloopback.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/almultireverb.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/alplay.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/alrecord.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/alreverb.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/alstream.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/alstreamcb.cpp %%PORTEXAMPLES%%%%EXAMPLESDIR%%/altonegen.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/common/alhelpers.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/common/alhelpers.h %%PORTEXAMPLES%%%%EXAMPLESDIR%%/common/alhelpers.hpp