opt/faudio/Pkgfile

22 lines
574 B
Plaintext
Raw Normal View History

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-07-28 15:58:52 +02:00
# Depends on: cmake ninja ffmpeg libsdl2
2019-08-31 12:18:17 +02:00
name=faudio
version=20.11
2019-08-31 12:18:17 +02:00
release=1
source=(https://github.com/FNA-XNA/FAudio/archive/$version/$name-$version.tar.gz)
build() {
cmake -S FAudio-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-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
}