ports/162913: [patch] lang/rexx-wrapper: respect CC/CFLAGS
Jan Beich
jbeich at tormail.net
Mon Nov 28 05:50:09 UTC 2011
>Number: 162913
>Category: ports
>Synopsis: [patch] lang/rexx-wrapper: 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: Mon Nov 28 05:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20111126065358.pointyhat-west/rexx-wrapper-2.4.log
>Fix:
--- cc.diff begins here ---
Index: lang/rexx-wrapper/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/rexx-wrapper/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- lang/rexx-wrapper/Makefile 22 Aug 2009 00:24:34 -0000 1.4
+++ lang/rexx-wrapper/Makefile 28 Nov 2011 05:35:56 -0000
@@ -23,4 +23,12 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-rexx=regina
DATADIR= ${PREFIX}/share/rexx${PORTNAME}
+post-patch: .SILENT
+ @${REINPLACE_CMD} -Ee "/^compiler\.unix/s,'.*','${CC:T}'," \
+ -e "s,cc\.cc = .*,cc.${CC:T} = '${CC}'," \
+ -e "/ opt/s/-[Og][^' ]?//" \
+ -e "s,cflags\. = '(.*)',cflags. = '\1 ${CFLAGS}'," \
+ ${WRKSRC}/rexxwrap.cmd
+ @${REINPLACE_CMD} 's/-compiler=$$(CC/&:T/' ${WRKSRC}/Makefile.in
+
.include <bsd.port.mk>
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list