ports/162538: [patch] lang/nbfc: respect CC/CFLAGS

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


>Number:         162538
>Category:       ports
>Synopsis:       [patch] lang/nbfc: 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:12 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/nbfc-0.1.log
>Fix:
--- cc.diff begins here ---
Index: lang/nbfc/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/nbfc/Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile
--- lang/nbfc/Makefile	29 May 2008 19:14:47 -0000	1.1
+++ lang/nbfc/Makefile	13 Nov 2011 19:26:26 -0000
@@ -17,8 +17,11 @@ MAN1=	nbfc.1
 
 PLIST_FILES=	bin/nbfc
 
-post-patch:
-	${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g;s|bison -y|yacc -|g' \
+post-patch:	.SILENT
+	${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
+		-e 's|bison -y|${YACC} -|g' \
+		-e 's/gcc/$$(CC) $$(CFLAGS)/' \
+		-e 's/-g//' -e 's/-O4//' \
 		${WRKSRC}/Makefile
 
 .include <bsd.port.mk>
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list