35 lines
1.0 KiB
Bash
35 lines
1.0 KiB
Bash
# Template file for 'FAudio'
|
|
pkgname=FAudio
|
|
version=20.02
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DFFMPEG=ON -DSDL2_INCLUDE_DIRS=${XBPS_CROSS_BASE}/usr/include/SDL2
|
|
-DSDL2_LIBRARIES=${XBPS_CROSS_BASE}/usr/lib"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL2-devel ffmpeg-devel"
|
|
short_desc="Accuracy-focused XAudio reimplementation for open platforms"
|
|
maintainer="Franc[e]sco <lolisamurai@tfwno.gf>"
|
|
license="Zlib"
|
|
homepage="https://github.com/FNA-XNA/FAudio"
|
|
distfiles="https://github.com/FNA-XNA/FAudio/archive/${version}.tar.gz"
|
|
checksum=103a6d278921ce757e5427133626f60ce4876b30d81186f78af35d9f1ca4ef16
|
|
|
|
# sdl2 cmake file appears to be broken for cross compilation
|
|
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/SDL2 "
|
|
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/SDL2 "
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
FAudio-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/cmake
|
|
vmove usr/share
|
|
}
|
|
}
|