Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 2003 13:51:32 +0200 (CEST)
From:      Ulrich Spoerlein <q@uni.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        danfe@regency.nsu.ru
Subject:   ports/56425: games/fuhquake: Silence GCC warnings
Message-ID:  <200309041151.h84BpWZN021541@roadrunner.local>
Resent-Message-ID: <200309041200.h84C0R17040761@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         56425
>Category:       ports
>Synopsis:       games/fuhquake: Silence GCC warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 04 05:00:26 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 5.1-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
While building fuhquake, I noticed TONS of warnings because header and source
files don't end with a newline character.

- Silence GCC warnings
- Change bogus SED statement
- small style fix
>How-To-Repeat:
Build this with GCC 3.2/3.3
>Fix:

--- patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/games/fuhquake/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	1 Sep 2003 11:52:05 -0000	1.2
+++ Makefile	4 Sep 2003 11:47:50 -0000
@@ -106,6 +106,12 @@
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%%%BASEDIR%%%%|${DATADIR}|' ${WRKSRC}/common.c
+.for file in cmd.h common.h render.h console.h quakedef.h cvar.h cvar_groups.h \
+	fmod.h config_manager.h auth.h logging.h ignore.h fchecks.h rulesets.h \
+	modules.h mp3_player.h r_local.h movie.c logging.c quotes.h zone.c \
+	gl_local.h gl_image.h gl_warp_sin.h
+	@${ECHO_CMD} "" >> ${WRKSRC}/${file}
+.endfor
 
 do-build:
 .if !defined(WITHOUT_X11)
@@ -135,14 +141,14 @@
 .endif
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-. for txt in benchmark config_manager crosshairs linux logitech mp3 \
+.for txt in benchmark config_manager crosshairs linux logitech mp3 \
 	particles pointing rulesets track
 	${INSTALL_DATA} ${WRKDIR}/doc/${txt}.txt ${DOCSDIR}
-. endfor
+.endfor
 	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.txt ${DOCSDIR}
 .endif
 
 post-install:
-	@${SED} -e 's|$${PREFIX}|${PREFIX}|g' ${PKGMESSAGE}
+	@${SED} -e 's|$${DATADIR}|${DATADIR}|g' ${PKGMESSAGE}
 
 .include <bsd.port.mk>
--- patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309041151.h84BpWZN021541>