Date: Thu, 23 Jul 2009 20:40:03 GMT From: Anonymous <swell.k@gmail.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/137043: [patch] multimedia/mplayer: add SSSE3 support Message-ID: <200907232040.n6NKe3Vr072500@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/137043; it has been noted by GNATS. From: Anonymous <swell.k@gmail.com> To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/137043: [patch] multimedia/mplayer: add SSSE3 support Date: Fri, 24 Jul 2009 00:34:27 +0400 - Oops, forgot to about SIMD. - Don't hide --disable-ssse3 behind RTCPU option. --- mplayer.diff begins here --- Index: multimedia/mplayer/Makefile =================================================================== RCS file: /home/csup/ports/multimedia/mplayer/Makefile,v retrieving revision 1.187 diff -u -p -r1.187 Makefile --- multimedia/mplayer/Makefile 17 Jul 2009 18:34:49 -0000 1.187 +++ multimedia/mplayer/Makefile 23 Jul 2009 18:46:41 -0000 @@ -7,7 +7,7 @@ PORTNAME= mplayer PORTVERSION= ${MPLAYER_PORT_VERSION} -PORTREVISION= 14 +PORTREVISION= 15 COMMENT= High performance media player supporting many formats @@ -76,8 +76,7 @@ CONFFILES= example.conf input.conf menu. .include <bsd.port.pre.mk> -CONFIGURE_ARGS+= --disable-ssse3 \ - --disable-directfb \ +CONFIGURE_ARGS+= --disable-directfb \ --disable-faac \ --disable-twolame \ --disable-mencoder Index: multimedia/mplayer/Makefile.options =================================================================== RCS file: /home/csup/ports/multimedia/mplayer/Makefile.options,v retrieving revision 1.7 diff -u -p -r1.7 Makefile.options --- multimedia/mplayer/Makefile.options 31 Mar 2009 13:58:17 -0000 1.7 +++ multimedia/mplayer/Makefile.options 23 Jul 2009 20:32:01 -0000 @@ -32,6 +32,11 @@ # kernel config. This is standard for 5.x and newer systems on I686_CPU # and later. 4.x users will have to define this explicitly. # +# WITHOUT_SSSE3 +# default: autodetected +# disables using of ssse3 code +# NOTE: SSSE3 support is available for gcc >= 4.3.0, binutils >= 2.18. +# # Feature options: # These options influence some general behaviour of mplayer. Most of the featues, # for example all the codecs, are selected via the OPTIONS framework. @@ -259,6 +264,16 @@ CONFIGURE_ARGS+=--disable-3dnow --disabl CONFIGURE_ARGS+=--disable-mmxext --disable-sse --disable-sse2 .endif .endif #WITH_RTCPU +.if !defined(WITHOUT_SSSE3) && !defined(WITHOUT_SIMD) +USE_GCC= 4.3+ +AS= ${LOCALBASE}/bin/as +BUILD_DEPENDS+= ${AS}:${PORTSDIR}/devel/binutils +.else # WITH_SSSE3 and WITH_SIMD +CONFIGURE_ARGS+=--disable-ssse3 +.if ${ARCH} == "amd64" +CFLAGS+= -DBROKEN_RELOCATIONS +.endif +.endif # WITH_SSSE3 and WITH_SIMD .if !defined(WITHOUT_WIN32) && !defined(PACKAGE_BUILDING) && ${ARCH} == "i386" RUN_DEPENDS+= ${CODEC_DETECTION_FILE}:${CODEC_PORT} CONFIGURE_ARGS+= --win32codecsdir=${LOCALBASE}/lib/win32 Index: multimedia/mplayer/files/patch-libavcodec-Makefile =================================================================== RCS file: multimedia/mplayer/files/patch-libavcodec-Makefile diff -N multimedia/mplayer/files/patch-libavcodec-Makefile --- multimedia/mplayer/files/patch-libavcodec-Makefile 12 Dec 2007 23:26:36 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,13 +0,0 @@ ---- libavcodec/Makefile.orig 2007-10-07 15:49:37.000000000 -0400 -+++ libavcodec/Makefile 2007-11-14 02:49:09.000000000 -0500 -@@ -6,6 +6,10 @@ - - CFLAGS += -I$(SRC_PATH)/libswscale -I$(SRC_PATH)/libavcodec - -+ifeq ($(ARCH_X86_64),yes) -+CFLAGS += -DBROKEN_RELOCATIONS -+endif -+ - OBJS = allcodecs.o \ - audioconvert.o \ - bitstream.o \ Index: multimedia/mencoder/Makefile =================================================================== RCS file: /home/csup/ports/multimedia/mencoder/Makefile,v retrieving revision 1.9 diff -u -p -r1.9 Makefile --- multimedia/mencoder/Makefile 6 Jul 2009 21:25:55 -0000 1.9 +++ multimedia/mencoder/Makefile 23 Jul 2009 19:12:55 -0000 @@ -78,8 +78,7 @@ CONFIGURE_ARGS+= --disable-vidix-interna --disable-svga \ --disable-aa \ --disable-joystick \ - --disable-directfb \ - --disable-ssse3 + --disable-directfb .include "${.CURDIR}/../mplayer/Makefile.options" --- mplayer.diff ends here ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907232040.n6NKe3Vr072500>