pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/gens Allow to specify ROM to run on command ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/381bf222d796
branches: trunk
changeset: 516859:381bf222d796
user: dillo <dillo%pkgsrc.org@localhost>
date: Sat Jul 29 20:40:09 2006 +0000
description:
Allow to specify ROM to run on command line; bump PKGREVISION.
diffstat:
emulators/gens/Makefile | 4 +-
emulators/gens/distinfo | 3 +-
emulators/gens/patches/patch-al | 50 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 54 insertions(+), 3 deletions(-)
diffs (86 lines):
diff -r 2c3d57e06e60 -r 381bf222d796 emulators/gens/Makefile
--- a/emulators/gens/Makefile Sat Jul 29 19:45:30 2006 +0000
+++ b/emulators/gens/Makefile Sat Jul 29 20:40:09 2006 +0000
@@ -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 -r 2c3d57e06e60 -r 381bf222d796 emulators/gens/distinfo
--- a/emulators/gens/distinfo Sat Jul 29 19:45:30 2006 +0000
+++ b/emulators/gens/distinfo Sat Jul 29 20:40:09 2006 +0000
@@ -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-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 -r 2c3d57e06e60 -r 381bf222d796 emulators/gens/patches/patch-al
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/gens/patches/patch-al Sat Jul 29 20:40:09 2006 +0000
@@ -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");
++ }
+ }
+ }
+
Home |
Main Index |
Thread Index |
Old Index