ports/148993: [patch] net-im/echat: respect STRIP, don't override -O[0-4] and -ggdb
Anonymous
swell.k at gmail.com
Tue Jul 27 10:30:03 UTC 2010
>Number: 148993
>Category: ports
>Synopsis: [patch] net-im/echat: respect STRIP, don't override -O[0-4] and -ggdb[0-3]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 27 10:30:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
CFLAGS+=-O3 -ggdb
>Description:
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: net-im/echat/Makefile
===================================================================
RCS file: /a/.cvsup/ports/net-im/echat/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- net-im/echat/Makefile 5 Sep 2006 09:18:30 -0000 1.5
+++ net-im/echat/Makefile 27 Jul 2010 10:18:50 -0000
@@ -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
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list