# -*- 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 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 port:pkgconfig depends_lib-append port:libmysofa \ port:zlib compiler.cxx_standard 2014 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} # 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 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}