summaryrefslogtreecommitdiff
path: root/games/wxhugo
diff options
context:
space:
mode:
authorrillig <rillig>2005-06-14 07:15:52 +0000
committerrillig <rillig>2005-06-14 07:15:52 +0000
commit4f48297accd9e82fb66b224747d303089edb8856 (patch)
tree8a7e8cfced4de62ed85e2057b6e5e0b042811659 /games/wxhugo
parent3079f1bc41237e8282d6ba46703fa9c8c70f96d2 (diff)
downloadpkgsrc-4f48297accd9e82fb66b224747d303089edb8856.tar.gz
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 (limited to 'games/wxhugo')
-rw-r--r--games/wxhugo/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/games/wxhugo/Makefile b/games/wxhugo/Makefile
index a74264b2d75..35ca3875a63 100644
--- a/games/wxhugo/Makefile
+++ b/games/wxhugo/Makefile
@@ -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 @@ DIST_SUBDIR= hugo-3.1.02
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"