summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2006-07-29 20:40:09 +0000
committerdillo <dillo@pkgsrc.org>2006-07-29 20:40:09 +0000
commit1832e3569c31c743362e2599ed61c12fc6c7a3f5 (patch)
tree4842fe4a5336a7c7af39876d63cc2d6ba085a16d /emulators
parent8cefcc289377b0ac62a76a4e0b474fb55d3330ef (diff)
downloadpkgsrc-1832e3569c31c743362e2599ed61c12fc6c7a3f5.tar.gz
Allow to specify ROM to run on command line; bump PKGREVISION.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/gens/Makefile4
-rw-r--r--emulators/gens/distinfo3
-rw-r--r--emulators/gens/patches/patch-al50
3 files changed, 54 insertions, 3 deletions
diff --git a/emulators/gens/Makefile b/emulators/gens/Makefile
index 831363ba18d..4fe3629deb0 100644
--- a/emulators/gens/Makefile
+++ b/emulators/gens/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.13 2006/06/12 16:28:06 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2006/07/29 20:40:09 dillo Exp $
#
DISTNAME= gens-rc3
PKGNAME= gens-2.12rc3
-PKGREVISION= 8
+PKGREVISION= 9
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gens/}
diff --git a/emulators/gens/distinfo b/emulators/gens/distinfo
index 178707773bf..5b482ffc758 100644
--- a/emulators/gens/distinfo
+++ b/emulators/gens/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2006/06/25 18:36:28 wiz Exp $
+$NetBSD: distinfo,v 1.7 2006/07/29 20:40:09 dillo Exp $
SHA1 (gens-rc3.tar.gz) = 6057564665007686c9ea8df364be3220499f9917
RMD160 (gens-rc3.tar.gz) = d2a36a5bdca8948b12624cba15dab0c5b527a688
@@ -14,6 +14,7 @@ SHA1 (patch-ah) = e8a6264b351c4a7fb3fb1bd4dd5a482dcef763ae
SHA1 (patch-ai) = 596fe718e5c38091a06198413bcf29b3c668571f
SHA1 (patch-aj) = a046754c4734f5270c0c6d5bfb55dc8442991b36
SHA1 (patch-ak) = fbf85318880857783cd98348af627b7c6e444382
+SHA1 (patch-al) = df28b32dc88d3d45867ff9fd771a364a0fabe9b2
SHA1 (patch-am) = 3e49691329cdfaf60f89136d104ec5e87cd6e255
SHA1 (patch-an) = 94a6a857238edbf3db0daea59400f5b13fc1ed2f
SHA1 (patch-ao) = 04bbf581f156cf3f9f119295a00071f29c2b1ab7
diff --git a/emulators/gens/patches/patch-al b/emulators/gens/patches/patch-al
new file mode 100644
index 00000000000..84ffe1f66fa
--- /dev/null
+++ b/emulators/gens/patches/patch-al
@@ -0,0 +1,50 @@
+$NetBSD: patch-al,v 1.1 2006/07/29 20:40:09 dillo Exp $
+
+--- src/gens/emulator/parse.c.orig 2004-05-19 21:21:00.000000000 +0200
++++ src/gens/emulator/parse.c
+@@ -510,10 +510,41 @@ parseArgs (int argc, char **argv)
+
+ if (optind < argc)
+ {
+- printf ("non-option ARGV-elements: ");
+- while (optind < argc)
+- printf ("%s ", argv[optind++]);
+- printf ("\n");
++ if (optind == argc-1)
++ {
++ char fname[1024];
++ int l;
++
++ if (argv[optind][0] == '/')
++ {
++ strncpy(fname, argv[optind], 1024);
++ fname[1023] = '\0';
++ }
++ else
++ {
++ getcwd(fname, 1024);
++ fname[1023] = '\0';
++ l = strlen(fname);
++ fname[l++] = '/';
++ strncpy(fname+l, argv[optind], 1024-l);
++ fname[1023] = '\0';
++ }
++ if (Pre_Load_Rom(fname))
++ {
++ printf("%s loaded.\n", fname);
++ }
++ else
++ {
++ printf("cannot load %s.\n", fname);
++ }
++ }
++ else
++ {
++ printf ("non-option ARGV-elements: ");
++ while (optind < argc)
++ printf ("%s ", argv[optind++]);
++ printf ("\n");
++ }
+ }
+ }
+