Date: Thu, 27 Dec 2007 19:22:29 +0300 (MSK) From: Dmitry Marakasov <amdmi3@amdmi3.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/119066: [MAINTAINER] graphics/sharpconstruct: (hopefully) fix build on sparc64 Message-ID: <20071227162229.0D22F17030@hades.panopticon> Resent-Message-ID: <200712271630.lBRGU2P8093157@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 119066 >Category: ports >Synopsis: [MAINTAINER] graphics/sharpconstruct: (hopefully) fix build on sparc64 >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: Thu Dec 27 16:30:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 7.0-BETA4 i386 >Organization: >Environment: System: FreeBSD hades.panopticon 7.0-BETA4 FreeBSD 7.0-BETA4 #0: Thu Dec 20 13:28:17 MSK 2007 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386 >Description: Try to fix build on sparc64 by disabling -msse option in case of ARCH is not i386 or amd64. Link to build error: http://pointyhat.freebsd.org/errorlogs/sparc64-errorlogs/e.7.2007121804/sharpconstruct-0.11_1.log >How-To-Repeat: >Fix: --- sparpconstruct.patch begins here --- diff -ruN sharpconstruct.orig/Makefile sharpconstruct/Makefile --- sharpconstruct.orig/Makefile 2007-12-27 19:12:22.000000000 +0300 +++ sharpconstruct/Makefile 2007-12-27 19:18:10.000000000 +0300 @@ -7,7 +7,7 @@ PORTNAME= sharpconstruct PORTVERSION= 0.11 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= SF MASTER_SITE_SUBDIR= sharp3d @@ -26,7 +26,12 @@ MAN1= sharpconstruct.1 +.include <bsd.port.pre.mk> + 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 @@ -35,4 +40,4 @@ @${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e '/^DEFS / s|$$| -DDATADIR=\\"${DATADIR}\\"|' -.include <bsd.port.mk> +.include <bsd.port.post.mk> --- sparpconstruct.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?20071227162229.0D22F17030>