2011-10-17 22:15:57 +11:00
|
|
|
# Description: Cross-platform 3D audio.
|
2019-04-28 15:56:08 +10:00
|
|
|
# URL: https://github.com/kcat/openal-soft
|
2014-11-10 23:25:50 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2011-10-17 22:15:57 +11:00
|
|
|
# Depends on: alsa-lib cmake
|
2021-02-19 21:53:05 +11:00
|
|
|
# Optional: qt5 ninja
|
2011-10-17 22:15:57 +11:00
|
|
|
|
|
|
|
name=openal
|
2023-04-29 20:56:59 +02:00
|
|
|
version=1.23.1
|
2011-10-17 22:15:57 +11:00
|
|
|
release=1
|
2021-02-16 22:34:11 +11:00
|
|
|
source=(https://github.com/kcat/openal-soft/archive/$version/openal-soft-$version.tar.gz)
|
2011-10-17 22:15:57 +11:00
|
|
|
|
|
|
|
build() {
|
2021-01-09 17:45:20 +11:00
|
|
|
[ -e '/usr/bin/ninja' ] && PKGMK_OPENAL+=' -G Ninja'
|
2011-10-17 22:15:57 +11:00
|
|
|
|
2021-02-16 22:34:11 +11:00
|
|
|
cmake -S openal-soft-$version -B build ${PKGMK_OPENAL} \
|
2021-01-09 17:45:20 +11:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D ALSOFT_EXAMPLES=OFF \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release
|
2011-10-17 22:15:57 +11:00
|
|
|
|
2021-01-09 17:45:20 +11:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2011-10-17 22:15:57 +11:00
|
|
|
}
|