diff options
author | kwm <kwm@FreeBSD.org> | 2012-06-28 16:47:09 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2012-06-28 16:47:09 +0800 |
commit | cf4560e4ebfabf81b10148ea545944d99e497536 (patch) | |
tree | fbe4382ef8caedda99aa68a41386e60e8bc74eea /multimedia | |
parent | 593d38ef49339904fd634b703cc6def120cce187 (diff) | |
download | freebsd-ports-gnome-cf4560e4ebfabf81b10148ea545944d99e497536.tar.gz freebsd-ports-gnome-cf4560e4ebfabf81b10148ea545944d99e497536.tar.zst freebsd-ports-gnome-cf4560e4ebfabf81b10148ea545944d99e497536.zip |
Fix the build on i386.
Reported by: H <hm@hm.net.br>, decke@
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/gstreamer-plugins/files/patch-gst_audioresample_resample.c | 12 | ||||
-rw-r--r-- | multimedia/gstreamer-plugins/files/patch-gst_audioresample_speex-resampler-double.c | 21 |
2 files changed, 33 insertions, 0 deletions
diff --git a/multimedia/gstreamer-plugins/files/patch-gst_audioresample_resample.c b/multimedia/gstreamer-plugins/files/patch-gst_audioresample_resample.c new file mode 100644 index 000000000000..aa5c15195dd3 --- /dev/null +++ b/multimedia/gstreamer-plugins/files/patch-gst_audioresample_resample.c @@ -0,0 +1,12 @@ +--- gst/audioresample/resample.c.orig 2012-06-28 10:15:58.000000000 +0200 ++++ gst/audioresample/resample.c 2012-06-28 10:22:41.000000000 +0200 +@@ -79,6 +79,9 @@ + #ifdef _USE_SSE + #ifndef HAVE_XMMINTRIN_H + #undef _USE_SSE ++/* this is a hack to build on i386, there the configure check for emmintrin.h ++ doesn't fail but the xmmintrin.h does. */ ++#undef _USE_SSE2 + #endif + #endif + diff --git a/multimedia/gstreamer-plugins/files/patch-gst_audioresample_speex-resampler-double.c b/multimedia/gstreamer-plugins/files/patch-gst_audioresample_speex-resampler-double.c new file mode 100644 index 000000000000..97d8e785a2ca --- /dev/null +++ b/multimedia/gstreamer-plugins/files/patch-gst_audioresample_speex-resampler-double.c @@ -0,0 +1,21 @@ +--- gst/audioresample/speex_resampler_double.c.orig 2012-06-28 10:31:31.000000000 +0200 ++++ gst/audioresample/speex_resampler_double.c 2012-06-28 10:33:01.000000000 +0200 +@@ -17,7 +17,18 @@ + * Boston, MA 02111-1307, USA. + */ + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ ++#ifdef _USE_SSE ++#ifndef HAVE_XMMINTRIN_H ++#undef _USE_SSE ++#undef _USE_SSE2 ++#else + #define _USE_SSE2 ++#endif ++#endif + #define FLOATING_POINT + #define DOUBLE_PRECISION + #define OUTSIDE_SPEEX |