ports/163172: [patch] biology/primer3: respect CC
Jan Beich
jbeich at tormail.net
Sat Dec 10 21:40:09 UTC 2011
>Number: 163172
>Category: ports
>Synopsis: [patch] biology/primer3: respect CC
>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: Sat Dec 10 21:40:08 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:
While here, use `+=' consistently for *FLAGS.
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/primer3-1.1.4.log
>Fix:
--- cc.diff begins here ---
Index: biology/primer3/Makefile
===================================================================
RCS file: /a/.csup/ports/biology/primer3/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- biology/primer3/Makefile 29 Dec 2010 20:04:12 -0000 1.13
+++ biology/primer3/Makefile 10 Dec 2011 20:29:22 -0000
@@ -19,9 +19,10 @@ DOCUMENTS= README.txt example
post-patch:
@${REINPLACE_CMD} \
+ -e 's#^CC *=#CC ?=#;' \
-e 's#^CFLAGS.*#CFLAGS += \$$\(CC_OPTS\)#;' \
-e 's#CC_OPTS = -g#CC_OPTS =#;' \
- -e 's#LDFLAGS = -g#LDFLAGS ?=#;' \
+ -e 's#LDFLAGS = -g#LDFLAGS +=#;' \
-e 's#^WHITEHEAD_SPECIFIC_HACK.*##;' \
${WRKDIR}/src/Makefile
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list