Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2008 06:32:40 +0300 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/121551: [MAINTAINER] graphics/sharpconstruct: add ONLY_FOR_ARCHS
Message-ID:  <20080310033240.731C917023@hades.panopticon>
Resent-Message-ID: <200803100340.m2A3e1Gn050246@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121551
>Category:       ports
>Synopsis:       [MAINTAINER] graphics/sharpconstruct: add ONLY_FOR_ARCHS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 10 03:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 7.0-RELEASE FreeBSD 7.0-RELEASE #4: Fri Feb 29 18:51:58 MSK 2008 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
* The software uses SSE, so it won't compile on sparc64; add proper ONLY_FOR_ARCHS and ONLY_FOR_ARCHS_REASON            
* Back out my previous attempt to fix it on sparc - it's useless
>How-To-Repeat:
>Fix:

--- sharpconstruct.patch begins here ---
diff -ruN sharpconstruct.orig/Makefile sharpconstruct/Makefile
--- sharpconstruct.orig/Makefile	2008-03-10 06:20:50.000000000 +0300
+++ sharpconstruct/Makefile	2008-03-10 06:30:55.000000000 +0300
@@ -24,14 +24,12 @@
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 
-MAN1=		sharpconstruct.1
+ONLY_FOR_ARCHS=	i386 amd64
+ONLY_FOR_ARCHS_REASON=	uses SSE
 
-.include <bsd.port.pre.mk>
+MAN1=		sharpconstruct.1
 
 post-patch:
-.if ${ARCH} != "i386" && ${ARCH} != "amd64"
-	@${REINPLACE_CMD} -e 's|-msse||' ${WRKSRC}/src/Makefile*
-.endif
 	@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/include/Align.hh
 	@${REINPLACE_CMD} -e 's|"/sharpconstruct|"|' ${WRKSRC}/src/MainWindow.cc
 	@${REINPLACE_CMD} -e 's|/usr/share/sharpconstruct|${DATADIR}|' ${WRKSRC}/src/MainWindow.cc
@@ -40,4 +38,4 @@
 	@${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \
 		${REINPLACE_CMD} -e '/^DEFS / s|$$| -DDATADIR=\\"${DATADIR}\\"|'
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--- sharpconstruct.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080310033240.731C917023>