ports/113680: [PATCH] irc/inspircd respect CXXFLAGS

Martin Matuska mm at FreeBSD.org
Thu Jun 14 14:00:10 UTC 2007


>Number:         113680
>Category:       ports
>Synopsis:       [PATCH] irc/inspircd respect CXXFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 14 14:00:09 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Martin Matuska
>Release:        FreeBSD 6.2-RELEASE-p4
>Organization:
>Environment:
FreeBSD 6.2-RELEASE-p4 i386 and amd64
>Description:
Patch to respect CXXFLAGS and a cosmetic change at Makefile bottom.
Tested with portlint & tinderbox.

>How-To-Repeat:
>Fix:
Index: ports/irc/inspircd/Makefile
===================================================================
RCS file: /home/pcvs/ports/irc/inspircd/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- ports/irc/inspircd/Makefile	13 Jun 2007 23:39:01 -0000	1.6
+++ ports/irc/inspircd/Makefile	14 Jun 2007 13:40:16 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	inspircd
 PORTVERSION=	1.1.8
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	irc
 MASTER_SITES=	http://www.inspircd.org/downloads/ \
 		http://www.chatspike.net/downloads/
@@ -33,6 +33,7 @@
 
 post-patch:
 	@${REINPLACE_CMD} -e '/INSTMODE/s|700|755|;/install -d.*BINPATH/d'\
+		-e 's/FLAGS = @FLAGS@/FLAGS = ${CXXFLAGS} @FLAGS@/' \
 		${WRKSRC}/.Makefile.inc
 
 # 1.0.6 Makefile forgets to make these directories
@@ -49,8 +50,9 @@
 	@${STRIP_CMD} ${PREFIX}/lib/inspircd/*.so
 	@${STRIP_CMD} ${PREFIX}/bin/inspircd
 .for FILE in censor conf filter helpop motd quotes rules
-	@${TEST} -f ${PREFIX}/etc/inspircd/inspircd.${FILE} || \
-		${CP} ${PREFIX}/etc/inspircd/inspircd.${FILE}.example ${PREFIX}/etc/inspircd/inspircd.${FILE}
+	@if ${TEST} -f ${PREFIX}/etc/inspircd/inspircd.${FILE}; then \
+		${CP} ${PREFIX}/etc/inspircd/inspircd.${FILE}.example ${PREFIX}/etc/inspircd/inspircd.${FILE}; \
+	fi
 .endfor
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list