diff --git a/multimedia/sound/speex/files/speex-ac.patch b/multimedia/sound/speex/files/speex-ac.patch
new file mode 100644
index 0000000000..2b9693c5bd
--- /dev/null
+++ b/multimedia/sound/speex/files/speex-ac.patch
@@ -0,0 +1,11 @@
+--- speex-1.2.0/configure.ac.orig 2016-12-08 00:20:14.000000000 +0100
++++ speex-1.2.0/configure.ac 2016-12-18 18:08:22.364596212 +0100
+@@ -167,7 +167,7 @@
+ fi])
+
+ AC_ARG_ENABLE(binaries, [ --disable-binaries Do not build the encoder and decoder programs, only the library])
+-if test "$enableval" != no; then
++if test "$enable_binaries" != no; then
+ PKG_CHECK_MODULES([OGG], [ogg],
+ AM_CONDITIONAL([BUILD_BINARIES], true),
+AM_CONDITIONAL([BUILD_BINARIES], false))
\ No newline at end of file
diff --git a/multimedia/sound/speex/pspec.xml b/multimedia/sound/speex/pspec.xml
index 08650bbc94..6d920b7b21 100644
--- a/multimedia/sound/speex/pspec.xml
+++ b/multimedia/sound/speex/pspec.xml
@@ -15,8 +15,10 @@
http://downloads.us.xiph.org/releases/speex/speex-1.2.0.tar.gz
libogg-devel
+ speexdsp-devel
+ speex-ac.patch
@@ -55,9 +57,12 @@
32-bit shared libraries for speex
emul32
+ libogg-32bit
+ speexdsp-32bit
speex
+ libogg-32bit
/usr/lib32