From amdmi3@mail.ru  Sun Apr  9 18:43:29 2006
Return-Path: <amdmi3@mail.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8901B16A403
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Apr 2006 18:43:29 +0000 (UTC)
	(envelope-from amdmi3@mail.ru)
Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DE87643D48
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Apr 2006 18:43:28 +0000 (GMT)
	(envelope-from amdmi3@mail.ru)
Received: from [213.148.29.33] (port=2713 helo=nexii.panopticon)
	by mx2.mail.ru with esmtp 
	id 1FSesh-000Bwa-00
	for FreeBSD-gnats-submit@freebsd.org; Sun, 09 Apr 2006 22:43:27 +0400
Received: from hades.panopticon (hades.panopticon [192.168.0.2])
	by nexii.panopticon (Postfix) with ESMTP id 734D41140F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Apr 2006 22:48:23 +0400 (MSD)
Received: by hades.panopticon (Postfix, from userid 1000)
	id 3574747; Sun,  9 Apr 2006 22:44:19 +0400 (MSD)
Message-Id: <20060409184419.3574747@hades.panopticon>
Date: Sun,  9 Apr 2006 22:44:19 +0400 (MSD)
From: Dmitry Marakasov <amdmi3@mail.ru>
Reply-To: Dmitry Marakasov <amdmi3@mail.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] graphics/sharpconstruct fix build on non-i386
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         95552
>Category:       ports
>Synopsis:       [MAINTAINER] graphics/sharpconstruct fix build on non-i386
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 09 18:50:16 GMT 2006
>Closed-Date:    Mon Apr 10 20:07:43 GMT 2006
>Last-Modified:  Mon Apr 10 20:07:43 GMT 2006
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.0-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.0-RELEASE-p4 FreeBSD 6.0-RELEASE-p4 #1: Fri Jan 27 12:07:19 MSK 2006 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386

>Description:
Port didn't build on non-i386 machines, because there was `-msse' option was passed to gcc.

Reported by: pointyhat via kris

>How-To-Repeat:
>Fix:

--- sharpconstruct.patch begins here ---
diff -ruN sharpconstruct.orig/Makefile sharpconstruct/Makefile
--- sharpconstruct.orig/Makefile	Sun Apr  9 22:37:34 2006
+++ sharpconstruct/Makefile	Sun Apr  9 22:38:31 2006
@@ -41,5 +41,6 @@
 	@${REINPLACE_CMD} -e 's|memalign(b,c)|malloc(c)|' ${WRKSRC}/include/Align.hh
 	@${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \
 		${REINPLACE_CMD} -e '/^DEFS / s|$$| -DDATADIR=\\"${DATADIR}\\"|'
+	@${REINPLACE_CMD} -e 's|-msse||' ${WRKSRC}/src/Makefile.in
 
 .include <bsd.port.post.mk>
--- sharpconstruct.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Mon Apr 10 20:07:35 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

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