ports/162539: [patch] lang/pbasic: respect CC/CFLAGS
Jan Beich
jbeich at tormail.net
Sun Nov 13 20:50:13 UTC 2011
>Number: 162539
>Category: ports
>Synopsis: [patch] lang/pbasic: 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/pbasic-2.0.log
>Fix:
--- cc.diff begins here ---
Index: lang/pbasic/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/pbasic/Makefile,v
retrieving revision 1.19
diff -u -p -r1.19 Makefile
--- lang/pbasic/Makefile 17 Mar 2011 16:09:27 -0000 1.19
+++ lang/pbasic/Makefile 13 Nov 2011 19:49:55 -0000
@@ -22,6 +22,12 @@ MAKEFILE= makefile
MAN1= pbasic.1
PLIST_FILES= bin/pbasic
+post-patch: .SILENT
+ ${REINPLACE_CMD} -e '/^CC/s/=/?=/' \
+ -e '/^CFLAGS/{s/=/+=/;s/-O//;}' \
+ ${WRKSRC}/freebsd/makefile
+ ${ECHO_CMD} '.PHONY: $$(SYSTEMS)' >>${WRKSRC}/makefile
+
do-configure:
-cd ${WRKSRC} ; ${RM} -rf termio m68000 msdos vax pyramid ns32000 \
pdp11 cursor/cursor.dos cursor/cursor.ukc
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list