The way SSE is enabled right now is backwards, if you define WITH_SSE it disables it and if you don't define WITH_SSE it is enabled. I am submitting 2 patches to fix this. If we want SSE enabled default use patch1, if we want SSE to be enabled when defined use patch2. Orignally in http://www.freebsd.org/cgi/query-pr.cgi?pr=63417 I choose to use patch2 because mplayer enables SSE default. Patch1 o Works the opposite of myplayer and disables it default and adds WITH_SSE Patch2 o Works the same way mplayer does, enables it default and adds WITHOUT_SSE How-To-Repeat: === Begin Patch1 === diff -ruN multimedia/libfame.orig/Makefile multimedia/libfame/Makefile --- multimedia/libfame.orig/Makefile Sat Feb 28 12:15:17 2004 +++ multimedia/libfame/Makefile Sat Feb 28 12:25:50 2004 @@ -18,7 +18,7 @@ USE_LIBTOOL= yes INSTALLS_SHLIB= yes -.if !defined(WITH_SSE) +.if defined(WITH_SSE) CONFIGURE_ARGS+= --enable-sse .endif @@ -33,7 +33,7 @@ fame_start_frame.3 fame_end_frame.3 pre-everything:: -.if !defined(WITHOUT_SSE) +.if !defined(WITH_SSE) @${ECHO_MSG} " You can enable SSE optimized routines by defining WITH_SSE." @${ECHO_MSG} "" .endif === End Patch1 === === Begin Patch2 === diff -ruN multimedia/libfame.orig/Makefile multimedia/libfame/Makefile --- multimedia/libfame.orig/Makefile Sat Feb 28 12:15:17 2004 +++ multimedia/libfame/Makefile Sat Feb 28 12:30:06 2004 @@ -18,7 +18,7 @@ USE_LIBTOOL= yes INSTALLS_SHLIB= yes -.if !defined(WITH_SSE) +.if !defined(WITHOUT_SSE) CONFIGURE_ARGS+= --enable-sse .endif @@ -34,7 +34,7 @@ pre-everything:: .if !defined(WITHOUT_SSE) - @${ECHO_MSG} " You can enable SSE optimized routines by defining WITH_SSE." + @${ECHO_MSG} " You can disable SSE optimized routines by defining WITHOUT_SSE." @${ECHO_MSG} "" .endif === End Patch2 ===
Responsible Changed From-To: freebsd-ports-bugs->pav Take, this fixes what I messed earlier today
I made a typo in Patch2 please use this if we choose to use WITHOUT_SSE and have it enabled default diff -ruN multimedia/libfame.orig/Makefile multimedia/libfame/Makefile --- multimedia/libfame.orig/Makefile Sat Feb 28 12:15:17 2004 +++ multimedia/libfame/Makefile Sat Feb 28 12:53:39 2004 @@ -18,7 +18,7 @@ USE_LIBTOOL= yes INSTALLS_SHLIB= yes -.if !defined(WITH_SSE) +.if !defined(WITHOUT_SSE) CONFIGURE_ARGS+= --enable-sse .endif @@ -34,7 +34,7 @@ pre-everything:: .if !defined(WITHOUT_SSE) - @${ECHO_MSG} " You can enable SSE optimized routines by defining WITH_SSE." + @${ECHO_MSG} " You can disable SSE optimized routines by defining WITHOUT_SSE." @${ECHO_MSG} "" .endif
State Changed From-To: open->closed Committed. I went with patch1, as it respects defaults set by software authors (mmx on, sse off).