void-packages/srcpkgs/libopenal/template
2017-08-05 09:53:29 +00:00

37 lines
1 KiB
Bash

# Template file for 'libopenal'
pkgname=libopenal
version=1.18.1
revision=1
build_style=cmake
wrksrc="openal-soft-${version}"
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel pulseaudio-devel SDL2-devel ffmpeg-devel jack-devel"
short_desc="A cross-platform 3D audio library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="http://kcat.strangesoft.net/openal.html"
distfiles="http://kcat.strangesoft.net/openal-releases/openal-soft-${version}.tar.bz2"
checksum=2d51a6529526ef22484f51567e31a5c346a599767991a3dc9d4dcd9d9cec71dd
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
arm*) # Hack to not compile (broken) arm_neon.h inlining of indirect function calls
sed -i CMakeLists.txt -e"s;arm_neon.h;arm_neon.xxx;"
;;
esac
}
post_install() {
rm -f ${DESTDIR}/usr/share/openal/alsoftrc.sample
vsconf alsoftrc.sample
}
libopenal-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}