Here is a diff to have MPlayer build using Clang to take advantage
of the integrated assembler to be able to build the SSSE3 / SSE4
support.

Note: has not been checked on i386, please someone try building this
and see if it does. *crosses fingers*


Index: Makefile
===================================================================
RCS file: /home/cvs/ports/x11/mplayer/Makefile,v
retrieving revision 1.231
diff -u -p -u -p -r1.231 Makefile
--- Makefile    10 Jan 2014 21:52:29 -0000      1.231
+++ Makefile    10 Jan 2014 23:58:16 -0000
@@ -15,6 +15,7 @@ SUBST_VARS +=                 PREFIX CONFDIR
 # Distfiles must be hand-rolled, see README
 N =                    mplayer
 DISTNAME =             mplayer-${V}
+REVISION =             0
 EXTRACT_SUFX =         .tar.xz
 
 CATEGORIES =           x11 multimedia
@@ -37,7 +38,8 @@ MASTER_SITES =        http://comstyle.com/sourc
 
 MAINTAINER =   Edd Barrett <[email protected]>
 
-MODULES +=     converters/libiconv
+MODULES +=     converters/libiconv \
+               lang/clang
 
 LIB_DEPENDS =  graphics/png \
                graphics/jpeg \
@@ -71,6 +73,9 @@ BUILD_DEPENDS +=graphics/ffmpeg:patch
 BUILD_DEPENDS += devel/yasm
 .endif
 
+MODCLANG_ARCHS=        amd64 i386
+MODCLANG_LANGS=        c
+
 CONFDIR =      ${SYSCONFDIR}/mplayer
 
 .if ${MACHINE_ARCH:Marm}
@@ -164,11 +169,8 @@ WANTLIB += vorbisenc vorbis
 
 CONFIGURE_ENV += LOCALBASE="${LOCALBASE}" TMPDIR="${WRKBUILD}"
 
-# binutils 2.15 does not support SSSE3 / SSE4 for amd64 / i386
 .if ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Mi386}
 CONFIGURE_ARGS += --enable-runtime-cpudetection
-CONFIGURE_ARGS += --disable-ssse3
-CONFIGURE_ARGS += --disable-sse4
 .endif
 
 # binutils 2.15 assembler missing opcode support

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to