compat-32/openal-32/Pkgfile

25 lines
677 B
Plaintext
Raw Normal View History

2016-03-28 05:35:10 +02:00
# Description: Cross-platform 3D audio.
2019-04-28 08:01:13 +02:00
# URL: https://github.com/kcat/openal-soft
2016-03-28 05:35:10 +02:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2017-11-01 12:41:39 +01:00
# Depends on: alsa-lib-32 openal
2016-03-28 05:35:10 +02:00
name=openal-32
2023-04-30 06:09:48 +02:00
version=1.23.1
2016-03-28 05:35:10 +02:00
release=1
2021-02-16 12:35:27 +01:00
source=(https://github.com/kcat/openal-soft/archive/$version/openal-soft-$version.tar.gz)
2016-03-28 05:35:10 +02:00
build() {
2023-04-30 06:09:48 +02:00
cmake -S openal-soft-$version -B build ${PKGMK_OPENAL_32} -G Ninja \
2021-01-19 10:29:40 +01:00
-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 05:35:10 +02:00
2021-01-19 10:29:40 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
2016-03-28 05:35:10 +02:00
2021-01-19 10:29:40 +01:00
rm -r $PKG/usr/{include,share}
2016-03-28 05:35:10 +02:00
}