summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.