c6c6163b8e
Closes: #4103 Closes: #4044 Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'libopenal'
|
|
pkgname=libopenal
|
|
version=1.19.1
|
|
revision=1
|
|
wrksrc="openal-soft-${version}"
|
|
build_style=cmake
|
|
configure_args="-DALSOFT_EXAMPLES=OFF -DALSOFT_TESTS=OFF"
|
|
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-or-later"
|
|
homepage="http://openal-soft.org/"
|
|
distfiles="http://openal-soft.org/openal-releases/openal-soft-${version}.tar.bz2"
|
|
checksum=5c2f87ff5188b95e0dc4769719a9d89ce435b8322b4478b95dd4b427fe84b2e9
|
|
|
|
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"
|
|
}
|
|
}
|