2019-08-31 12:18:17 +02:00
|
|
|
# Description: XAudio2 reimplementation
|
|
|
|
# URL: https://github.com/FNA-XNA/FAudio/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-11-14 13:06:01 +01:00
|
|
|
# Depends on: libsdl2 gst-libav
|
2019-08-31 12:18:17 +02:00
|
|
|
|
|
|
|
name=faudio
|
2021-03-09 15:19:12 +01:00
|
|
|
version=21.03.05
|
2019-08-31 12:18:17 +02:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/FNA-XNA/FAudio/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2020-11-13 12:13:39 +01:00
|
|
|
cmake -S FAudio-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-18 10:51:18 +01:00
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-13 12:13:39 +01:00
|
|
|
-D GSTREAMER=ON
|
2019-08-31 12:18:17 +02:00
|
|
|
|
2020-04-25 11:02:39 +02:00
|
|
|
cmake --build build
|
2020-07-08 15:14:57 +02:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-08-31 12:18:17 +02:00
|
|
|
}
|