pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/wxhugo Remove DOS end-of-line characters from *....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dcaffae2446d
branches:  trunk
changeset: 495565:dcaffae2446d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Jun 14 07:15:52 2005 +0000

description:
Remove DOS end-of-line characters from *.c and *.cpp before compiling
them. This fixes the build with gcc-2.95 on NetBSD 1.6.2.

diffstat:

 games/wxhugo/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 7bf244e54983 -r dcaffae2446d games/wxhugo/Makefile
--- a/games/wxhugo/Makefile     Tue Jun 14 07:12:23 2005 +0000
+++ b/games/wxhugo/Makefile     Tue Jun 14 07:15:52 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2005/05/22 20:08:03 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2005/06/14 07:15:52 rillig Exp $
 #
 
 DISTNAME=      hugov31_unix_source
@@ -18,6 +18,13 @@
 USE_TOOLS+=    gmake
 WRKSRC=                ${WRKDIR}/hugov3.1.02/hewx
 
+# The gcc-2.95 Preprocessor chokes on DOS line-ends in macro continuations
+SUBST_CLASSES+=                dos_eol
+SUBST_MESSAGE.dos_eol= Removing DOS line-ends
+SUBST_STAGE.dos_eol=   post-extract
+SUBST_FILES.dos_eol=   *.c *.cpp */*.c */*.cpp */*/*.c */*/*.cpp
+SUBST_FILTER_CMD.dos_eol=      ${TR} -d '\r'
+
 .include "../../audio/libmikmod/buildlink3.mk"
 .include "../../x11/wxGTK/buildlink3.mk"
 



Home | Main Index | Thread Index | Old Index