mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
71 lines
2.2 KiB
Bash
71 lines
2.2 KiB
Bash
# $Id$
|
|
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
|
# Contributor: Jason Chu <jchu@xentac.net>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - fix for unimplemented _FPU_EXTENDED
|
|
# - patch to use neon only on 32bit ARM
|
|
|
|
pkgbase=openal
|
|
pkgname=(openal openal-examples)
|
|
pkgver=1.18.2
|
|
pkgrel=2
|
|
pkgdesc="Cross-platform 3D audio library, software implementation"
|
|
arch=(i686 x86_64)
|
|
url="https://github.com/kcat/openal-soft"
|
|
license=(LGPL)
|
|
depends=(glibc)
|
|
makedepends=(alsa-lib libpulse fluidsynth portaudio jack qt5-base sdl2 sdl_sound ffmpeg
|
|
git cmake ninja)
|
|
_commit=ce6076091bac3c00cd10803916e8911495580bd0 # tags/openal-soft-1.18.2
|
|
source=("git+https://github.com/kcat/openal-soft#commit=$_commit"
|
|
'no-fpuextended.patch'
|
|
'openal-soft-arm_neon-only-for-32bit.patch')
|
|
sha512sums=('SKIP'
|
|
'e782025501a62003ee7e63dcdb50343add8b1241b2efd606cc9a7f61a01d4625c777a647d7647b0b19798f247efca213bce3b3f40e22c8903355f7058e3d2011'
|
|
'55e1b6f9b0fd11ac85d1a01dd6353e3ef6875f3f2485147728d577f1066aa1c425eb0fffed603df10ccd7d6bf94e99d911fadbc8881a39674a9830c01fb41635')
|
|
|
|
pkgver() {
|
|
cd openal-soft
|
|
git describe --tags | sed 's/^openal-soft-//;s/-/+/g'
|
|
}
|
|
|
|
# https://bugs.archlinux.org/task/54908
|
|
git cherry-pick -n d4f3490a880f779f460332689a396ade69840f50
|
|
|
|
prepare() {
|
|
mkdir build examples
|
|
cd openal-soft
|
|
|
|
patch -p1 -i "${srcdir}"/no-fpuextended.patch
|
|
patch -p1 -i "${srcdir}"/openal-soft-arm_neon-only-for-32bit.patch
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../openal-soft -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
ninja
|
|
}
|
|
|
|
package_openal() {
|
|
optdepends=('qt5-base: alsoft-config GUI Configurator'
|
|
'fluidsynth: MIDI rendering')
|
|
|
|
DESTDIR="$pkgdir" ninja -C build install
|
|
install -Dt "$pkgdir/usr/share/doc/openal" -m644 openal-soft/docs/*
|
|
|
|
### Split openal-examples
|
|
mv -v "$pkgdir"/usr/bin/al{ffplay,hrtf,latency,loopback,reverb,stream} examples/
|
|
}
|
|
|
|
package_openal-examples() {
|
|
pkgdesc+=" (example programs)"
|
|
depends=("openal=$pkgver-$pkgrel" sdl2 sdl_sound ffmpeg)
|
|
|
|
mkdir "$pkgdir/usr"
|
|
mv -v examples "$pkgdir/usr/bin"
|
|
}
|