23 lines
595 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
2023-07-02 22:47:21 +02:00
version=23.07
2019-08-31 22:00:48 +10:00
release=1
source=(https://github.com/FNA-XNA/FAudio/archive/$version/$name-$version.tar.gz)
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
}