aboutsummaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-09-22 22:04:15 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-09-22 22:04:15 +0000
commitffa2d67f560d5ba7521516028bef6e743240b20c (patch)
treeac54794043d50ef54e8c8cb51b3c5b2aa74333e2 /net-im
parentb77e307a41df3728d63f52fa4dad6aa21381959d (diff)
downloadports-ffa2d67f560d5ba7521516028bef6e743240b20c.tar.gz
ports-ffa2d67f560d5ba7521516028bef6e743240b20c.zip
- Respect CFLAGS
PR: ports/148993 Submitted by: Anonymous <swell.k@gmail.com>
Notes
Notes: svn path=/head/; revision=261653
Diffstat (limited to 'net-im')
-rw-r--r--net-im/echat/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/net-im/echat/Makefile b/net-im/echat/Makefile
index 54d1b7527850..97fc8e12da36 100644
--- a/net-im/echat/Makefile
+++ b/net-im/echat/Makefile
@@ -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