opt/openal/Pkgfile

24 lines
620 B
Plaintext
Raw Normal View History

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