49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
# Template file for 'libopenal'
|
|
pkgname=libopenal
|
|
version=1.20.1
|
|
revision=2
|
|
wrksrc="openal-soft-${version}"
|
|
build_style=cmake
|
|
configure_args="-DALSOFT_EXAMPLES=OFF -DALSOFT_TESTS=OFF"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="zlib-devel alsa-lib-devel pulseaudio-devel SDL2-devel ffmpeg-devel
|
|
jack-devel $(vopt_if sndio sndio-devel)"
|
|
short_desc="Cross-platform 3D audio library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://openal-soft.org/"
|
|
distfiles="http://openal-soft.org/openal-releases/openal-soft-${version}.tar.bz2"
|
|
checksum=b6ceb051325732c23f5c8b6d37dbd89534517e6439a87e970882b447c3025d6d
|
|
|
|
build_options="sndio"
|
|
build_options_default="sndio"
|
|
|
|
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
|
|
}
|
|
|
|
pre_configure() {
|
|
cd native-tools
|
|
CC= CXX= CPP= LD= AR= AS= RANLIB= CFLAGS= CXXFLAGS= LDFLAGS= cmake .
|
|
make ${makejobs}
|
|
}
|
|
|
|
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"
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|