- Respect CFLAGS
PR: ports/148993 Submitted by: Anonymous <swell.k@gmail.com>
This commit is contained in:
parent
b77e307a41
commit
ffa2d67f56
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261653
1 changed files with 3 additions and 2 deletions
|
@ -17,8 +17,9 @@ MAN1= echat.1
|
|||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|g ; \
|
||||
s|PREFIX=/usr/local|PREFIX=${PREFIX}|g ; \
|
||||
s|CC=|CC?=|g' ${WRKSRC}/Makefile
|
||||
s|PREFIX=|PREFIX?=|g ; s|CC=|CC?=|g; \
|
||||
\|^CFLAGS| { s|-g||; s|-O2||; } ; \
|
||||
\|CC|s|@||; \|install|s|-s|${STRIP}|' ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/.echatrc.sample ${PREFIX}/etc/echatrc.sample
|
||||
|
|
Loading…
Reference in a new issue