aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2010-09-23 06:04:15 +0800
committerpgollucci <pgollucci@FreeBSD.org>2010-09-23 06:04:15 +0800
commitde5ba1487096fec564894377fe3d2dd127883c79 (patch)
tree911babb173e07d045c6ea9ee5527abcf83b5dd7f /net-im
parent03dd518a6c9a2e1c315ef8138813d0fd5a435ceb (diff)
downloadfreebsd-ports-gnome-de5ba1487096fec564894377fe3d2dd127883c79.tar.gz
freebsd-ports-gnome-de5ba1487096fec564894377fe3d2dd127883c79.tar.zst
freebsd-ports-gnome-de5ba1487096fec564894377fe3d2dd127883c79.zip
- Respect CFLAGS
PR: ports/148993 Submitted by: Anonymous <swell.k@gmail.com>
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