From nobody@FreeBSD.org  Thu Feb 26 14:46:30 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 96A8E16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Feb 2004 14:46:30 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 903DC43D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Feb 2004 14:46:30 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1QMkU72071037
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Feb 2004 14:46:30 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i1QMkUXe071036;
	Thu, 26 Feb 2004 14:46:30 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200402262246.i1QMkUXe071036@www.freebsd.org>
Date: Thu, 26 Feb 2004 14:46:30 -0800 (PST)
From: michael johnson <ahze@ahze.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [Patch] multimedia/libfame -- Add SSE support and support to disable mmx/sse
X-Send-Pr-Version: www-2.3

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 26 14:50:43 PST 2004
>Closed-Date:    Sat Feb 28 05:10:56 PST 2004
>Last-Modified:  Sat Feb 28 05:10:56 PST 2004
>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:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sat Feb 28 05:10:35 PST 2004 
State-Changed-Why:  
Committed, thanks! 

I believe you wanted WITH_SSE :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63417 
>Unformatted:
