aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/openal/Makefile2
-rw-r--r--audio/openal/files/patch-src-arch-i386-x86_floatmul.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/audio/openal/Makefile b/audio/openal/Makefile
index eea322d8e50c..863f2e84a37c 100644
--- a/audio/openal/Makefile
+++ b/audio/openal/Makefile
@@ -7,7 +7,7 @@
PORTNAME= openal
PORTVERSION= 20060211
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= audio
MASTER_SITES= http://openal.org/openal_webstf/downloads/
DISTVERSION= 0.0.8
diff --git a/audio/openal/files/patch-src-arch-i386-x86_floatmul.c b/audio/openal/files/patch-src-arch-i386-x86_floatmul.c
new file mode 100644
index 000000000000..7bc3a81c262a
--- /dev/null
+++ b/audio/openal/files/patch-src-arch-i386-x86_floatmul.c
@@ -0,0 +1,11 @@
+--- src/arch/i386/x86_floatmul.c.orig 2005-12-21 22:06:35.000000000 +0300
++++ src/arch/i386/x86_floatmul.c 2009-04-04 04:53:56.000000000 +0400
+@@ -46,7 +46,7 @@
+ v4hi temp;
+
+
+- samples_pre = MMX_ALIGN - (aint)bpt % MMX_ALIGN;
++ samples_pre = (MMX_ALIGN - (aint)bpt % MMX_ALIGN) % MMX_ALIGN;
+ samples_pre /= sizeof(ALshort);
+ samples_main = len - samples_pre;
+ samples_post = samples_main % 8;