2023-09-16 17:56:10 +02:00
|
|
|
# Description: Cross-platform 3D audio
|
2023-08-19 11:57:32 +02:00
|
|
|
# URL: https://github.com/kcat/openal-soft
|
2023-09-16 17:56:10 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-09-16 07:28:52 -04:00
|
|
|
# Depends on: alsa-lib
|
2023-09-16 17:56:10 +02:00
|
|
|
# Optional: dbus ffmpeg fluidsynth libsdl2 libsndfile pipewire portaudio pulseaudio qt5
|
2023-08-19 11:57:32 +02:00
|
|
|
|
|
|
|
name=openal
|
|
|
|
version=1.23.1
|
2023-09-16 17:56:10 +02:00
|
|
|
release=2
|
2023-08-19 11:57:32 +02:00
|
|
|
source=(https://github.com/kcat/openal-soft/archive/$version/openal-soft-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2023-09-16 17:56:10 +02:00
|
|
|
cmake -S openal-soft-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D ALSOFT_UTILS=ON \
|
|
|
|
-D ALSOFT_INSTALL_CONFIG=ON \
|
|
|
|
-D ALSOFT_INSTALL_HRTF_DATA=ON \
|
|
|
|
-D ALSOFT_INSTALL_UTILS=ON \
|
|
|
|
-D ALSOFT_EXAMPLES=OFF
|
2023-08-19 11:57:32 +02:00
|
|
|
|
2023-09-16 17:56:10 +02:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2023-08-19 11:57:32 +02:00
|
|
|
}
|