summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorcube <cube>2005-04-16 14:43:49 +0000
committercube <cube>2005-04-16 14:43:49 +0000
commit3e8e61ba1337483377c2f0a0beb3055067ad3b1a (patch)
treef513eafbb837663cda29e29e203ce1ee5b3ed4f4 /games
parent3e583779a588dd69bdf787627d208705d20f46cd (diff)
downloadpkgsrc-3e8e61ba1337483377c2f0a0beb3055067ad3b1a.tar.gz
Import a patch from the package I had made for this in pkgsrc-wip. While
I really don't remember where I had found this patch, sanity-checking the return value of a fopen can't be a bad thing. PKGREVISION++.
Diffstat (limited to 'games')
-rw-r--r--games/lmarbles/Makefile4
-rw-r--r--games/lmarbles/distinfo3
-rw-r--r--games/lmarbles/patches/patch-ab13
3 files changed, 17 insertions, 3 deletions
diff --git a/games/lmarbles/Makefile b/games/lmarbles/Makefile
index 10d4693aebf..51527b5d6eb 100644
--- a/games/lmarbles/Makefile
+++ b/games/lmarbles/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2005/04/11 21:45:51 tv Exp $
+# $NetBSD: Makefile,v 1.4 2005/04/16 14:43:49 cube Exp $
DISTNAME= lmarbles-1.0.7
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lgames/}
diff --git a/games/lmarbles/distinfo b/games/lmarbles/distinfo
index 915338ea6fe..2fc20276a97 100644
--- a/games/lmarbles/distinfo
+++ b/games/lmarbles/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2005/02/23 23:12:00 agc Exp $
+$NetBSD: distinfo,v 1.3 2005/04/16 14:43:49 cube Exp $
SHA1 (lmarbles-1.0.7.tar.gz) = 25b0a635f53a3ab351247ac2820cbd6951d7050d
RMD160 (lmarbles-1.0.7.tar.gz) = 5fc90ff923848496b1fbce63473a22fcc716c345
Size (lmarbles-1.0.7.tar.gz) = 829635 bytes
SHA1 (patch-aa) = b453e75a29848a470275d06bc97e9fe09a12e1b8
+SHA1 (patch-ab) = ddd9a96c56b40d4b392b1091d5f537c97e845559
diff --git a/games/lmarbles/patches/patch-ab b/games/lmarbles/patches/patch-ab
new file mode 100644
index 00000000000..531da73e299
--- /dev/null
+++ b/games/lmarbles/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2005/04/16 14:43:49 cube Exp $
+
+--- src/sdl.c.orig 2002-08-08 04:37:50.000000000 +0200
++++ src/sdl.c
+@@ -173,6 +173,8 @@ SFnt* SF_Ld(char *fname)
+
+ //table
+ file = fopen(path, "r");
++ if (file == NULL)
++ err(1, "SF_Ld: %s", path);
+ fseek(file, -1, SEEK_END);
+ fread(&fnt->off, 1, 1, file);
+ #ifdef DEBUG