diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2012-01-14 19:11:35 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2012-01-14 19:11:35 +0000 |
commit | 3a0015019dbdcc824267f3fe732321005a0d6559 (patch) | |
tree | 9ac69f3b16ba5f875d363565b0025f5495ff5810 /lang/rexx-wrapper | |
parent | - Update to 4.8.1 (diff) |
- Respect CC/CFLAGS
PR: 162913
Submitted by: Jan Beich <jbeich@tormail.net>
Notes
Notes:
svn path=/head/; revision=289201
Diffstat (limited to 'lang/rexx-wrapper')
-rw-r--r-- | lang/rexx-wrapper/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
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 <bsd.port.mk> |