Date: Wed, 20 Feb 2008 01:59:14 +0100 From: "Pietro Cerutti" <gahr@gahr.ch> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/120864: [patch] graphics/figurine unbreak fix build on sparc64 + adopt maintainship Message-ID: <1203469154.6825@gahrtop.localhost> Resent-Message-ID: <200802200110.m1K1A4wg049396@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 120864 >Category: ports >Synopsis: [patch] graphics/figurine unbreak fix build on sparc64 + adopt maintainship >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 20 01:10:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Pietro Cerutti >Release: FreeBSD 8.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 8.0-CURRENT #4: Wed Feb 13 18:13:34 CET 2008 root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034 >Description: Optimizations produce bad assembly code on sparc64. While at it, I've beautified the Makefile (according to my taste ;-) and adopted maintainship >How-To-Repeat: >Fix: --- _figurine.diff begins here --- --- Makefile.orig 2008-02-20 01:44:52.000000000 +0100 +++ Makefile 2008-02-20 01:57:15.000000000 +0100 @@ -12,24 +12,32 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= gahr@gahr.ch COMMENT= A drawing program for X11 RUN_DEPENDS= fig2dev:${PORTSDIR}/print/transfig - GNU_CONFIGURE= yes USE_XPM= yes MAN1= figurine.1 +.include <bsd.port.pre.mk> + +# Optimizations produce bad assembly code on sparc64 +.if ${ARCH} == "sparc64" +CFLAGS+= -=O0 +.endif + post-patch: .if defined(NOPORTDOCS) @${REINPLACE_CMD} -e "s|Doc examples src|src|" \ ${WRKSRC}/Makefile.in .endif - @${FIND} ${WRKSRC} -type f -name Makefile.in | \ - ${XARGS} -n 10 ${REINPLACE_CMD} \ - -e 's|datadir = @datadir@|datadir = @datadir@/doc|' + @${REINPLACE_CMD} -e 's|datadir = @datadir@|datadir = @datadir@/doc|' \ + ${WRKSRC}/Makefile.in \ + ${WRKSRC}/src/Makefile.in \ + ${WRKSRC}/Doc/Makefile.in \ + ${WRKSRC}/examples/Makefile.in -.include <bsd.port.mk> +.include <bsd.port.post.mk> --- _figurine.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1203469154.6825>