aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mplayer
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2013-10-18 07:45:48 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2013-10-18 07:45:48 +0000
commit58d30ed8fcde4e2a4d7aa4f6350eb9d243da920b (patch)
tree86f9462143cfaac1e45252e6db8c8776a0c14cf0 /multimedia/mplayer
parenta6b5ff62fb3d8a6e06a802fb1d74d13a2ae1ad9d (diff)
downloadports-58d30ed8fcde4e2a4d7aa4f6350eb9d243da920b.tar.gz
ports-58d30ed8fcde4e2a4d7aa4f6350eb9d243da920b.zip
Notes
Diffstat (limited to 'multimedia/mplayer')
-rw-r--r--multimedia/mplayer/Makefile.options2
-rw-r--r--multimedia/mplayer/files/patch-libavcodec-x86-ac3dsp_init.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/multimedia/mplayer/Makefile.options b/multimedia/mplayer/Makefile.options
index f4ec25cc37c7..a5de5a0318a3 100644
--- a/multimedia/mplayer/Makefile.options
+++ b/multimedia/mplayer/Makefile.options
@@ -50,7 +50,7 @@ CFLAGS+= -O -fomit-frame-pointer
.endif #DEBUG
#Supported architectures for clang
-.if ${ARCH} == "amd64"
+.if ${ARCH} == "amd64" || ${ARCH} == "i386"
MPLAYER_CLANG_SUPPORTED_ARCH= yes
.endif
diff --git a/multimedia/mplayer/files/patch-libavcodec-x86-ac3dsp_init.c b/multimedia/mplayer/files/patch-libavcodec-x86-ac3dsp_init.c
new file mode 100644
index 000000000000..012826c3a775
--- /dev/null
+++ b/multimedia/mplayer/files/patch-libavcodec-x86-ac3dsp_init.c
@@ -0,0 +1,11 @@
+--- ffmpeg/libavcodec/x86/ac3dsp_init.c 2013-07-03 21:34:20.000000000 +0200
++++ ffmpeg/libavcodec/x86/ac3dsp_init.c 2013-07-03 21:34:45.000000000 +0200
+@@ -51,7 +51,7 @@
+ extern void ff_ac3_extract_exponents_sse2 (uint8_t *exp, int32_t *coef, int nb_coefs);
+ extern void ff_ac3_extract_exponents_ssse3(uint8_t *exp, int32_t *coef, int nb_coefs);
+
+-#if ARCH_X86_32 && defined(__INTEL_COMPILER)
++#if ARCH_X86_32 && (defined(__INTEL_COMPILER) || defined(__clang__))
+ # undef HAVE_7REGS
+ # define HAVE_7REGS 0
+ #endif