summaryrefslogtreecommitdiffstats
path: root/abs/extra/openal
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-01-16 22:50:48 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-01-16 22:50:48 (GMT)
commitf791fb8677c31ebd7c9224e7659aef0eb3fb9875 (patch)
tree13bed8bad014a36c95296dd74c2f4b5a192cce3e /abs/extra/openal
parent9ae850b6f7df994c9a2c9bd82ee5766d6fb076c6 (diff)
downloadlinhes_pkgbuild-f791fb8677c31ebd7c9224e7659aef0eb3fb9875.zip
linhes_pkgbuild-f791fb8677c31ebd7c9224e7659aef0eb3fb9875.tar.gz
linhes_pkgbuild-f791fb8677c31ebd7c9224e7659aef0eb3fb9875.tar.bz2
openal: update to 1.17.1
Diffstat (limited to 'abs/extra/openal')
-rw-r--r--abs/extra/openal/PKGBUILD47
-rw-r--r--abs/extra/openal/__changelog4
2 files changed, 35 insertions, 16 deletions
diff --git a/abs/extra/openal/PKGBUILD b/abs/extra/openal/PKGBUILD
index 6d6c669..9721c5c 100644
--- a/abs/extra/openal/PKGBUILD
+++ b/abs/extra/openal/PKGBUILD
@@ -1,29 +1,48 @@
-# $Id: PKGBUILD 149424 2012-02-07 16:51:11Z heftig $
+# $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
-# Contributer: Jason Chu <jchu@xentac.net>
+# Contributor: Jason Chu <jchu@xentac.net>
-pkgname=openal
-pkgver=1.13
-pkgrel=4
+pkgbase=openal
+pkgname=(openal openal-examples)
+pkgver=1.17.1
+pkgrel=1
pkgdesc="A cross-platform 3D audio library"
arch=(i686 x86_64)
url="http://www.openal.org/"
license=(LGPL)
depends=(glibc)
-makedepends=(alsa-lib sdl pkgconfig cmake)
-options=('!libtool')
-source=(http://kcat.strangesoft.net/openal-releases/openal-soft-$pkgver.tar.bz2)
-md5sums=('58b7d2809790c70681b825644c5f3614')
+makedepends=(alsa-lib pkgconfig cmake qt4 fluidsynth portaudio sdl2 sdl_sound ffmpeg
+ git)
+_commit=14df326876d92f63c9c007da3c0434fba47c30b8
+source=("git+https://github.com/kcat/openal-soft#commit=$_commit")
+sha256sums=('SKIP')
+
+prepare() {
+ mkdir build examples
+}
build() {
- cd "$srcdir/$pkgname-soft-$pkgver/build"
- cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release ..
+ cd build
+ cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release ../$pkgbase-soft
make
}
-package() {
- cd "$srcdir/$pkgname-soft-$pkgver"
+package_openal() {
+ optdepends=('qt4: alsoft-config GUI Configurator'
+ 'fluidsynth: MIDI rendering')
+
make -C build DESTDIR="$pkgdir/" install
- install -Dm644 alsoftrc.sample "$pkgdir/etc/openal/alsoft.conf.sample"
+ install -m644 $pkgbase-soft/{env-vars,hrtf}.txt "$pkgdir/usr/share/openal/"
+
+### Split openal-examples
+ mv "$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 -p "$pkgdir/usr/bin"
+ mv examples/* "$pkgdir/usr/bin/"
}
diff --git a/abs/extra/openal/__changelog b/abs/extra/openal/__changelog
index 7f47556..31ac229 100644
--- a/abs/extra/openal/__changelog
+++ b/abs/extra/openal/__changelog
@@ -1,2 +1,2 @@
-4/25/12 - chw -
-Removed libpulse as a dep.
+PKGBUILD:
+- Removed libpulse and jack as a dep.