From 683fb846941bcea737ab386723bda195e8334631 Mon Sep 17 00:00:00 2001 From: miwi Date: Sat, 14 Jan 2012 19:11:35 +0000 Subject: - Respect CC/CFLAGS PR: 162913 Submitted by: Jan Beich --- lang/rexx-wrapper/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lang/rexx-wrapper/Makefile b/lang/rexx-wrapper/Makefile index e080a276f5fe..86a4eba75af3 100644 --- a/lang/rexx-wrapper/Makefile +++ b/lang/rexx-wrapper/Makefile @@ -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 -- cgit