diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-15 20:15:16 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-15 20:15:16 -0500 |
commit | e4abd0ef2731bd765dfbe899e36dc2b31169d9ed (patch) | |
tree | cb21241122bbdb928d0925ae2e1bad947a1c5d77 | |
parent | 81380070806f12b5e30556135924409eaba82c09 (diff) | |
download | packages-e4abd0ef2731bd765dfbe899e36dc2b31169d9ed.tar.gz packages-e4abd0ef2731bd765dfbe899e36dc2b31169d9ed.tar.bz2 packages-e4abd0ef2731bd765dfbe899e36dc2b31169d9ed.tar.xz packages-e4abd0ef2731bd765dfbe899e36dc2b31169d9ed.zip |
user/openal-soft: modernise, add check, pulse support
-rw-r--r-- | user/openal-soft/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/user/openal-soft/APKBUILD b/user/openal-soft/APKBUILD new file mode 100644 index 000000000..db823c6de --- /dev/null +++ b/user/openal-soft/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: +pkgname=openal-soft +pkgver=1.18.2 +pkgrel=1 +pkgdesc="Software implementation of OpenAL API" +url="http://kcat.strangesoft.net/openal.html" +arch="all" +license="LGPL-2.0+" +depends="" +depends_dev="alsa-lib-dev" +makedepends="$depends_dev cmake linux-headers pulseaudio-dev" +subpackages="$pkgname-dev" +source="http://kcat.strangesoft.net/openal-releases/${pkgname}-${pkgver}.tar.bz2" + +prepare() { + default_prepare + mkdir -p "$builddir"/build +} + +build() { + local _cpuext_neon="" + cd "$builddir"/build + case "$CARCH" in + armhf) _cpuext_neon="-DALSOFT_CPUEXT_NEON=OFF" ;; + esac + cmake \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DCMAKE_INSTALL_LIBDIR="lib" \ + $_cpuext_neon \ + "$builddir" + make +} + +check() { + cd "$builddir"/build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir"/build + make DESTDIR="$pkgdir" install +} + +sha512sums="752e2fb0a5a014caa6d6bac1590d3df46140b463fbaa13378fb5de89f1c97ee8b62bec74f68484d4ec02ee8755c1a2d0c9394cdb477db1b7401deae2fb9eeb4d openal-soft-1.18.2.tar.bz2" |