ports/63417: [Patch] multimedia/libfame -- Add SSE support and support to disable mmx/sse

michael johnson ahze at ahze.net
Thu Feb 26 22:50:44 UTC 2004


>Number:         63417
>Category:       ports
>Synopsis:       [Patch] multimedia/libfame -- Add SSE support and support to disable mmx/sse
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 26 14:50:43 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     michael johnson
>Release:        5.2-CURRENT
>Organization:
>Environment:
>Description:
This patch adds SSE support and adds support for disabling MMX & SSE code
>How-To-Repeat:

>Fix:
diff -ruN multimedia/libfame.orig/Makefile multimedia/libfame/Makefile
--- multimedia/libfame.orig/Makefile	Thu Feb 26 16:44:04 2004
+++ multimedia/libfame/Makefile	Thu Feb 26 17:39:41 2004
@@ -18,10 +18,29 @@
 USE_LIBTOOL=	yes
 INSTALLS_SHLIB=	yes
 
+.if !defined(WITHOUT_SSE)
+CONFIGURE_ARGS+= --enable-sse
+.endif
+
+.if defined(WITHOUT_MMX)
+CONFIGURE_ARGS+= --disable-mmx
+.endif
+
 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
 MAN3=	fame_close.3 fame_encode_frame.3 fame_get_object.3 fame_init.3 \
 	fame_open.3 fame_register.3 fame_unregister.3 fame_encode_slice.3 \
 	fame_start_frame.3 fame_end_frame.3
+
+pre-everything::
+.if !defined(WITHOUT_SSE)
+	@${ECHO_MSG} " You can disable SSE optimized routines by defining WITHOUT_SSE."
+	@${ECHO_MSG} ""
+.endif
+
+.if !defined(WITHOUT_MMX)
+	@${ECHO_MSG} " You can disable MMX optimized routines by defining WITHOUT_MMX."
+	@${ECHO_MSG} ""
+.endif
 
 .include <bsd.port.mk>

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list