ports/162536: [patch] lang/nesasm: respect CC/CFLAGS

Jan Beich jbeich at tormail.net
Sun Nov 13 20:50:12 UTC 2011


>Number:         162536
>Category:       ports
>Synopsis:       [patch] lang/nesasm: respect CC/CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 13 20:50:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
# slightly different from pointyhat
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done
>Description:
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/nesasm-20040314_1.log
>Fix:
--- cc.diff begins here ---
Index: lang/nesasm/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/nesasm/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- lang/nesasm/Makefile	6 Jul 2009 21:33:55 -0000	1.3
+++ lang/nesasm/Makefile	13 Nov 2011 19:21:56 -0000
@@ -18,6 +18,11 @@ COMMENT=	The nesasm assembler is a 6502 
 WRKSRC=	${WRKDIR}/nbasic_2004_03_14/source/${PORTNAME}/source/
 USE_ZIP=	yes
 
+post-patch:	.SILENT
+	${REINPLACE_CMD} -e '/^CC/s/=/?=/' \
+		-e '/^CFLAGS/{s/=/+=/;s/-O2//;}' \
+		${WRKSRC}/Makefile.unix
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/nesasm ${PREFIX}/bin
 .ifndef(NOPORTDOCS)
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list