27 lines
726 B
Plaintext
Raw Normal View History

2016-03-28 14:35:10 +11:00
# Description: Cross-platform 3D audio.
2019-04-28 16:01:13 +10:00
# URL: https://github.com/kcat/openal-soft
2016-03-28 14:35:10 +11:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2017-11-01 22:41:39 +11:00
# Depends on: alsa-lib-32 openal
2016-03-28 14:35:10 +11:00
name=openal-32
2021-01-19 20:29:40 +11:00
version=1.21.0
2016-03-28 14:35:10 +11:00
release=1
2019-04-28 16:01:13 +10:00
source=(https://github.com/kcat/openal-soft/archive/openal-soft-$version.tar.gz)
2016-03-28 14:35:10 +11:00
build() {
2021-01-19 20:29:40 +11:00
[ -e '/usr/bin/ninja' ] && PKGMK_OPENAL+=' -G Ninja'
2016-03-28 14:35:10 +11:00
2021-01-19 20:29:40 +11:00
cmake -S openal-soft-openal-soft-$version -B build ${PKGMK_OPENAL_32} \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib32 \
-D ALSOFT_UTILS=OFF \
-D ALSOFT_EXAMPLES=OFF \
-D QT_QMAKE_EXECUTABLE=qmake-disabled \
-D CMAKE_BUILD_TYPE=Release
2016-03-28 14:35:10 +11:00
2021-01-19 20:29:40 +11:00
cmake --build build
DESTDIR=$PKG cmake --install build
2016-03-28 14:35:10 +11:00
2021-01-19 20:29:40 +11:00
rm -r $PKG/usr/{include,share}
2016-03-28 14:35:10 +11:00
}