# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup cmake 1.1 PortGroup compiler_blacklist_versions 1.0 PortGroup legacysupport 1.1 # For TARGET_OS_OSX, TARGET_OS_IOS & TARGET_OS_TV macros legacysupport.newest_darwin_requires_legacy 14 name openal-soft if {${os.platform} ne "darwin" || ${os.major} >= 21} { version 1.24.0 revision 0 checksums rmd160 10e511398a23539d4f441c12657cb466e0d47ccd \ sha256 46cedbf46213d5f5ea255b7489a8b1a234c07c5d77bfb8e70f1c64ce09c8b765 \ size 763289 } else { # macOS 11: # https://build.macports.org/builders/ports-11_x86_64-builder/builds/172017/steps/install-port/logs/stdio # alc/backends/coreaudio.cpp:307:46: error: use of undeclared identifier 'kAudioObjectPropertyElementMain'; did you mean 'kAudioObjectPropertyElementName'? # alc/backends/coreaudio.cpp:315:46: error: use of undeclared identifier 'kAudioObjectPropertyElementMain'; did you mean 'kAudioObjectPropertyElementName'? # # macOS 10.15: # https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/200661/steps/install-port/logs/stdio # alc/alu.cpp:2148:9: error: member reference base type 'al::span' is not a structure or union # # macOS 10.14: # https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/223612/steps/install-port/logs/stdio # utils/makemhr/loaddef.cpp:33:10: fatal error: 'filesystem' file not found version 1.23.1 revision 1 checksums rmd160 5ca2531cc9e7476d122ddc9ab3a1b3e568d62175 \ sha256 796f4b89134c4e57270b7f0d755f0fa3435b90da437b745160a49bd41c845b21 \ size 699330 } categories audio devel maintainers {ryandesign @ryandesign} openmaintainer license LGPL-2 description cross-platform software implementation of the OpenAL \ 3D audio API long_description OpenAL Soft is a ${description}. It's forked from the \ open-sourced Windows version available originally \ from the SVN repository at openal.org. OpenAL \ provides capabilities for playing audio in a virtual \ 3D environment. Distance attenuation, doppler shift, \ and directional sound emitters are among the features \ handled by the API. More advanced effects, including \ air absorption, occlusion, and environmental reverb, \ are available through the EFX extension. It also \ facilitates streaming audio, multi-channel buffers, \ and audio capture. homepage https://openal-soft.org master_sites ${homepage}/openal-releases/ use_bzip2 yes depends_build-append path:bin/pkg-config:pkgconfig depends_lib-append port:libmysofa \ port:zlib if {[vercmp ${version} < 1.24.0]} { # See: https://github.com/kcat/openal-soft/pull/851 patchfiles-append 0001-Define-__STDC_FORMAT_MACROS-on-systems-that-need-it.patch \ 0002-threads-do-not-use-libdispatch-where-it-is-not-prese.patch \ patch-cinttypes.diff compiler.cxx_standard 2014 } else { compiler.cxx_standard 2017 } compiler.thread_local_storage yes # error: inline declaration of 'configValue<...>' follows non-inline definition # https://github.com/kcat/openal-soft/issues/703 compiler.blacklist-append {clang < 900} configure.args-append -DALSOFT_EXAMPLES=OFF \ -DALSOFT_UTILS=ON \ -DALSOFT_NO_CONFIG_UTIL=ON \ -DALSOFT_REQUIRE_JACK=OFF \ -DALSOFT_BACKEND_JACK=OFF \ -DALSOFT_REQUIRE_PORTAUDIO=OFF \ -DALSOFT_BACKEND_PORTAUDIO=OFF \ -DALSOFT_REQUIRE_PULSEAUDIO=OFF \ -DALSOFT_BACKEND_PULSEAUDIO=OFF \ -DALSOFT_REQUIRE_SDL2=OFF \ -DALSOFT_BACKEND_SDL2=OFF variant gui description {Enable alsoft-config Qt GUI} { PortGroup qt5 1.0 configure.args-replace -DALSOFT_NO_CONFIG_UTIL=ON -DALSOFT_NO_CONFIG_UTIL=OFF } variant jack description {Enable JACK backend} { depends_lib-append port:jack configure.args-replace -DALSOFT_REQUIRE_JACK=OFF -DALSOFT_REQUIRE_JACK=ON \ -DALSOFT_BACKEND_JACK=OFF -DALSOFT_BACKEND_JACK=ON } variant portaudio description {Enable PortAudio backend} { depends_lib-append port:portaudio configure.args-replace -DALSOFT_REQUIRE_PORTAUDIO=OFF -DALSOFT_REQUIRE_PORTAUDIO=ON \ -DALSOFT_BACKEND_PORTAUDIO=OFF -DALSOFT_BACKEND_PORTAUDIO=ON } variant pulseaudio description {Enable PulseAudio backend} { depends_lib-append port:pulseaudio configure.args-replace -DALSOFT_REQUIRE_PULSEAUDIO=OFF -DALSOFT_REQUIRE_PULSEAUDIO=ON \ -DALSOFT_BACKEND_PULSEAUDIO=OFF -DALSOFT_BACKEND_PULSEAUDIO=ON } variant sdl2 description {Enable SDL2 backend} { depends_lib-append port:libsdl2 configure.args-replace -DALSOFT_REQUIRE_SDL2=OFF -DALSOFT_REQUIRE_SDL2=ON \ -DALSOFT_BACKEND_SDL2=OFF -DALSOFT_BACKEND_SDL2=ON } livecheck.type regex livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}