23 lines
596 B
Plaintext
Raw Normal View History

2019-08-31 22:00:48 +10:00
# Description: XAudio2 reimplementation
# URL: https://github.com/FNA-XNA/FAudio/
2023-06-02 16:03:00 +02:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2019-08-31 22:00:48 +10:00
# Depends on: libsdl2-32 faudio
name=faudio-32
2025-01-03 19:26:50 +01:00
version=25.01
2019-08-31 22:00:48 +10:00
release=1
2023-10-02 15:19:41 +02:00
source=(https://github.com/FNA-XNA/FAudio/archive/$version/faudio-$version.tar.gz)
2019-08-31 22:00:48 +10:00
build() {
2020-11-15 16:01:21 +11:00
cmake -S FAudio-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib32 \
-D CMAKE_BUILD_TYPE=Release \
2020-12-18 20:55:05 +11:00
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
2019-08-31 22:00:48 +10:00
2020-04-25 19:10:30 +10:00
cmake --build build
DESTDIR=$PKG cmake --build build --target install
2020-05-14 23:04:11 +10:00
2019-08-31 22:00:48 +10:00
rm -r $PKG/usr/include
}