From f88cc86a06880f4c432e5cbeec04663e024b0b5e Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 1 Feb 2011 22:58:59 -0600 Subject: testing/openal-soft: new aport --- testing/openal-soft/APKBUILD | 45 +++++++++++++++++++++++++++++ testing/openal-soft/openal-fegetround.patch | 20 +++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 testing/openal-soft/APKBUILD create mode 100644 testing/openal-soft/openal-fegetround.patch (limited to 'testing/openal-soft') diff --git a/testing/openal-soft/APKBUILD b/testing/openal-soft/APKBUILD new file mode 100644 index 000000000..fdf1df20e --- /dev/null +++ b/testing/openal-soft/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: William Pitcock +# Maintainer: +pkgname=openal-soft +pkgver=1.12.854 +pkgrel=0 +pkgdesc="software implementation of OpenAL API" +url="http://kcat.strangesoft.net/openal.html" +arch="all" +license="LGPL" +depends="alsa-lib" +depends_dev="alsa-lib-dev" +makedepends="$depends_dev cmake" +install="" +subpackages="$pkgname-dev" +source="http://kcat.strangesoft.net/openal-releases/${pkgname}-${pkgver}.tar.bz2 + openal-fegetround.patch" + +_srcdir="${srcdir}/${pkgname}-${pkgver}" +_builddir="${srcdir}/build" +prepare() { + local i + + cd "$_srcdir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + + mkdir -p "$_builddir" +} + +build() { + cd "$_builddir" + cmake -DCMAKE_INSTALL_PREFIX="/usr" "$_srcdir" || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="fbf36451fdebd6466edbdc0ee7db9603 openal-soft-1.12.854.tar.bz2 +e75032e44d64f268358d9755ff5200c6 openal-fegetround.patch" diff --git a/testing/openal-soft/openal-fegetround.patch b/testing/openal-soft/openal-fegetround.patch new file mode 100644 index 000000000..261ab595a --- /dev/null +++ b/testing/openal-soft/openal-fegetround.patch @@ -0,0 +1,20 @@ +--- openal-soft-1.12.854.orig/Alc/ALu.c ++++ openal-soft-1.12.854.mod/Alc/ALu.c +@@ -1345,7 +1345,7 @@ + int fpuState; + ALuint i, c; + +-#if defined(HAVE_FESETROUND) ++#if 0 + fpuState = fegetround(); + fesetround(FE_TOWARDZERO); + #elif defined(HAVE__CONTROLFP) +@@ -1489,7 +1489,7 @@ + size -= SamplesToDo; + } + +-#if defined(HAVE_FESETROUND) ++#if 0 + fesetround(fpuState); + #elif defined(HAVE__CONTROLFP) + _controlfp(fpuState, 0xfffff); -- cgit v1.2.3