- Respect CC/CFLAGS

PR:		162913
Submitted by:	Jan Beich <jbeich@tormail.net>
This commit is contained in:
Martin Wilke 2012-01-14 19:11:35 +00:00
parent 866b757baf
commit 3a0015019d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289201

View File

@ -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>