1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Respect CFLAGS

PR:             ports/148993
Submitted by:   Anonymous <swell.k@gmail.com>
This commit is contained in:
Philip M. Gollucci 2010-09-22 22:04:15 +00:00
parent b77e307a41
commit ffa2d67f56
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261653

View File

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