inherit cmake NAME="openal" VERSION=1.23.1 RELEASE=1 LICENSE="LGPL-2.1-only" CATEGORY="Libs" SUMMARY="Cross-platform 3D audio library" DESCRIPTION="OpenAL Soft is an LGPL-licensed, cross-platform, software implementation of the OpenAL 3D audio API. 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/" SRC_URI="https://openal-soft.org/openal-releases/${NAME}-soft-${VERSION}.tar.bz2" SRC_DIR="openal-soft-${VERSION}" PKG_NAMES="openal openal-config openal-examples libopenal1 libopenal-devel" openal_CATEGORY="Audio" openal_SUMMARY="${SUMMARY} utilities" openal_CONTENTS="usr/bin/openal-info.exe usr/share/" openal_config_CATEGORY="Audio" openal_config_SUMMARY="${SUMMARY} configuration GUI" openal_config_CONTENTS="usr/bin/alsoft-config.exe" openal_examples_CATEGORY="Audio" openal_examples_SUMMARY="${SUMMARY} examples" openal_examples_CONTENTS="--exclude=*-config.exe usr/bin/al*.exe" libopenal1_REQUIRES="libportaudio2" # libpulse0 libopenal1_CONTENTS="usr/bin/cygopenal-1.dll" libopenal_devel_CONTENTS=" usr/include/AL/ usr/lib/cmake/OpenAL/ usr/lib/libopenal.dll.a usr/lib/pkgconfig/openal.pc " # OSS backend plays incorrectly on Cygwin # PTHREAD means -pthread flag not pthread usage CYGCMAKE_ARGS=" -DALSOFT_BACKEND_ALSA=OFF -DALSOFT_BACKEND_COREAUDIO=OFF -DALSOFT_BACKEND_DSOUND=OFF -DALSOFT_BACKEND_JACK=OFF -DALSOFT_BACKEND_MMDEVAPI=OFF -DALSOFT_BACKEND_OPENSL=OFF -DALSOFT_BACKEND_OSS=OFF -DALSOFT_BACKEND_PORTAUDIO=ON -DALSOFT_BACKEND_PULSEAUDIO=ON -DALSOFT_BACKEND_PSA=OFF -DALSOFT_BACKEND_SNDIO=OFF -DALSOFT_BACKEND_SOLARIS=OFF -DALSOFT_BACKEND_WAVE=ON -DALSOFT_BACKEND_WINMM=OFF -DALSOFT_DLOPEN=ON -DHAVE_PTHREAD=OFF -DHAVE_GCC_PROTECTED_VISIBILITY=OFF -DHAVE_VISIBILITY_INTERNAL_SWITCH=OFF -DHAVE_VISIBILITY_HIDDEN_SWITCH=OFF -DHAVE_WINDOWS_H=OFF -DHAVE_GUIDDEF_H=OFF -DHAVE_INITGUID_H=OFF -DAVUTIL_LIBRARIES=NOTFOUND "