forked from ports/compat-32
23 lines
596 B
Plaintext
23 lines
596 B
Plaintext
# Description: XAudio2 reimplementation
|
|
# URL: https://github.com/FNA-XNA/FAudio/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: libsdl2-32 faudio
|
|
|
|
name=faudio-32
|
|
version=24.03
|
|
release=1
|
|
source=(https://github.com/FNA-XNA/FAudio/archive/$version/faudio-$version.tar.gz)
|
|
|
|
build() {
|
|
cmake -S FAudio-$version -B build -G Ninja \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib32 \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --build build --target install
|
|
|
|
rm -r $PKG/usr/include
|
|
}
|