ports/120864: [patch] graphics/figurine unbreak fix build on sparc64 + adopt maintainship
Pietro Cerutti
gahr at gahr.ch
Wed Feb 20 01:10:04 UTC 2008
>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 at 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 at FreeBSD.org
+MAINTAINER= gahr at 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:
More information about the freebsd-ports-bugs
mailing list