aboutsummaryrefslogtreecommitdiff
path: root/games/csmash
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2005-05-05 02:27:28 +0000
committerEric Anholt <anholt@FreeBSD.org>2005-05-05 02:27:28 +0000
commit46e2234caf0230d80584ba68c6d636aa9a187a08 (patch)
tree2a31b6e00d952888b10efac230cc8a3bdcbc7771 /games/csmash
parentf4ed8f63bcc65ca4d1cce00d3e15458702150871 (diff)
downloadports-46e2234caf0230d80584ba68c6d636aa9a187a08.tar.gz
ports-46e2234caf0230d80584ba68c6d636aa9a187a08.zip
Notes
Diffstat (limited to 'games/csmash')
-rw-r--r--games/csmash/Makefile8
-rw-r--r--games/csmash/files/patch-loadparts.cpp11
2 files changed, 12 insertions, 7 deletions
diff --git a/games/csmash/Makefile b/games/csmash/Makefile
index f1db947e871c..b8cbe342eaf9 100644
--- a/games/csmash/Makefile
+++ b/games/csmash/Makefile
@@ -25,14 +25,8 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} != "i386"
-BROKEN= "Does not compile on !i386"
-.endif
-
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|/games/|/|g'
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/games/csmash/files/patch-loadparts.cpp b/games/csmash/files/patch-loadparts.cpp
new file mode 100644
index 000000000000..cab4e05cc796
--- /dev/null
+++ b/games/csmash/files/patch-loadparts.cpp
@@ -0,0 +1,11 @@
+--- loadparts.cpp.orig Wed May 4 19:19:33 2005
++++ loadparts.cpp Wed May 4 19:19:48 2005
+@@ -245,7 +245,7 @@
+
+ while ('\\' == line[l-1]) {
+ // concat next line(s)
+- int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1);
++ int bufsize = clamp(0UL, sizeof(line)-l, sizeof(line)-1);
+ fgets(&line[l-2], bufsize, fp);
+ if (feof((FILE*)fp)) break;
+ l = strlen(line);