pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/arnold Update to 20040111



details:   https://anonhg.NetBSD.org/pkgsrc/rev/518acd0146cb
branches:  trunk
changeset: 378514:518acd0146cb
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Mon Apr 09 15:03:22 2018 +0000

description:
Update to 20040111

Changelog:
11-Janunary-2004
================
A source patch so you can build Unix/Linux version.


4th-Jan-2004
============

General:
- new: now using CVS source control system. This is making development much much easier! :)

Core:
- fix: fixed I/O port decoding for RAM configuration PAL inside CPC6128; and for PAL integrated
  into CPC+ ASIC. Thankyou to Richard Wilson for his help.
- fix: fixed a bug in the RAM configuration which prevented Overflow's Backtro and C/PM+ from running.
- fix: sample loading: 16-bit samples were treated as unsigned, but they are
  actually signed. fixed.
- fix: lots of fdc emulation bugs fixed
- fix: lots of bugs fixed in disc image output code; applies to inserting unformatted discs;
  a lot of created images were bad!
  strange formats are mostly supported now.
- fix: write deleted data now marks sectors with deleted data control mark now!
- fix: all fdc commands supported including scan commands
- fix: multi-track function of fdc fully implemented
- new: support for DIF disk image (used by CPC++ emulator) [Richard Bannister]
- new: seperated floppy disc controller, floppy disc drive, and floppy disc interface code.
- fix: fixed decoding of disc controller I/O ports
- new: removed as many references to Host_LoadFile and Host_SaveFile from the core code.
(this allows the host to supply binary data which is included in executable, and allows
the host to use it's own load/save functions).
- new: updated the load and save functions to return status code's which indicate an errors
(this allows the host code to return more meaningful error code's and messages;
or to even log them to a file)
- new: removed reference to Host_OpenFile and Host_CloseFile functions from printer code.
The host must now handle the printer output itself.
- new: removed cpcdefs.h file. Defines are build related and should be defined in the project/makefile for each port.
- new: auto-type helper feature; enter the text you want to type in and let the auto-type
feature do all the hard work for you :) Thankyou to Troels K for the first version which
he has in CPC Explorer/CPC Loader.
- new: auto-start helper feature; this feature will attempt to auto-start any image that
has been inserted. But, on the CPC there can be more than one way to run a program,
so this feature may not work with all discs. Try it and see :)

General interface functions:
- merged tape-image and sample handling code

CPC:
- fix: fixed keyboard problems in CPC mode.

CPC+:
- fix: fixed mirror of sprite X,Y coordinates in magnification registers
- fix: fixed sprite coordinates bugs. Simply the Best and Iron demo 3 will display exactly
  as on a real CPC+.

Windows version

Lots of user interface stuff to make Arnold easier to use :)
- new: roms moved to source distribution. Rom data is now built into executable.
- new: roms are integrated into executable. [Troels K, Andreas M, Richard B, Kev T]
- new: command-line supported; you can run arnold from the command line with various parameters.
- new: you can double click on a file to automatically launch Arnold (you must register the file
types first)
- new: you can drag and drop a file onto the Arnold window/exe and it will
  automatically be inserted
- new: you can double click on a file while Arnold is open, and it will be opened in Arnold.
- new: will detect if another instance of the application is running; you can choose to open
file with existing instance or new instance
- new: now using Zlib libary for decompression of ZIP archives. (some old files compressed with PKZIP may
not open; this is a limitation of the Zlib library) [Troels K, Kev T]
- new: executable compressed using UPX [Troels K]
- new: implemented file selection dialog for ZIP archives.
- new: zip archives now supported by all media (cassette, disc, cartridge, snapshot etc)
- fix: rom versions were not always displayed. Now fixed.
- new: lots of changes for UNICODE version of Arnold. [Troels K]
- new: unicode support for zlib [Troels K]
- new: build instructions for windows version
- new: About dialog box giving some copyright, logo and version information
- new: manifest file used to enable new look under Windows XP.
- new: you can associate the files of your choice with Arnold. Or if you want to keep your
current associations, then you can open the files using "Open with Arnold" from the shell.
- new: merged "Open Sample" and "Open Tape Image" into a single "Open Tape" menu item.
- new: "recent files" menu
- inserting a unformatted disc and selecting a existing file will now ask if you want
  to overwrite.

diffstat:

 emulators/arnold/Makefile                                |   14 +-
 emulators/arnold/PLIST                                   |   10 +-
 emulators/arnold/distinfo                                |   20 +-
 emulators/arnold/patches/patch-aa                        |   58 +--
 emulators/arnold/patches/patch-ab                        |   61 +++-
 emulators/arnold/patches/patch-ac                        |   13 -
 emulators/arnold/patches/patch-src_cpc_amsdos.c          |   19 +
 emulators/arnold/patches/patch-src_cpc_debugger_gdebug.c |   16 +
 emulators/arnold/patches/patch-src_cpc_render5.c         |   90 +++++++
 emulators/arnold/patches/patch-src_unix_display__sdl.c   |   13 +
 emulators/arnold/patches/patch-src_unix_gtkui.c          |  184 +++++++++++++++
 11 files changed, 413 insertions(+), 85 deletions(-)

diffs (truncated from 587 to 300 lines):

diff -r dfbaa2a2880e -r 518acd0146cb emulators/arnold/Makefile
--- a/emulators/arnold/Makefile Mon Apr 09 14:57:44 2018 +0000
+++ b/emulators/arnold/Makefile Mon Apr 09 15:03:22 2018 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2015/04/25 14:20:44 tnn Exp $
+# $NetBSD: Makefile,v 1.27 2018/04/09 15:03:22 ryoon Exp $
 #
 
-DISTNAME=              arnsrc27012002
-PKGNAME=               arnold-20020127
-PKGREVISION=           7
+DISTNAME=              arnsrc04012004
+PKGNAME=               arnold-20040111
 CATEGORIES=            emulators
 MASTER_SITES=          http://arnold.emuunlim.com/download/
 EXTRACT_SUFX=          .zip
@@ -23,11 +22,14 @@
 MAKE_ENV+=             SHAREDIR=${SHAREDIR}
 AUTO_MKDIRS=           yes
 
-USE_TOOLS+=            pax
+USE_TOOLS+=            gmake pax
+
+post-extract:
+       cd ${WRKSRC} && ${FIND} . -type d -name CVS -print | ${XARGS} ${RM} -rf
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/arnold ${DESTDIR}${PREFIX}/bin
-       cd ${WRKSRC}/roms && pax -wr * ${DESTDIR}${SHAREDIR}/roms/
+       cd ${WRKSRC}/src/roms && pax -wr * ${DESTDIR}${SHAREDIR}/roms/
        cd ${DESTDIR}${SHAREDIR}/roms && \
                ${FIND} . -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE} && \
                ${FIND} . -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
diff -r dfbaa2a2880e -r 518acd0146cb emulators/arnold/PLIST
--- a/emulators/arnold/PLIST    Mon Apr 09 14:57:44 2018 +0000
+++ b/emulators/arnold/PLIST    Mon Apr 09 15:03:22 2018 +0000
@@ -1,19 +1,17 @@
-@comment $NetBSD: PLIST,v 1.3 2018/01/01 22:29:26 rillig Exp $
+@comment $NetBSD: PLIST,v 1.4 2018/04/09 15:03:22 ryoon Exp $
 bin/arnold
+share/arnold/roms/ARNOR/PROTEXT.ROM
+share/arnold/roms/ARNOR/UTOPIA.ROM
 share/arnold/roms/amsdose/amsdos.rom
-share/arnold/roms/amsdose/file_id.diz
 share/arnold/roms/cpc464e/basic.rom
-share/arnold/roms/cpc464e/file_id.diz
 share/arnold/roms/cpc464e/os.rom
 share/arnold/roms/cpc6128e/basic.rom
-share/arnold/roms/cpc6128e/file_id.diz
 share/arnold/roms/cpc6128e/os.rom
 share/arnold/roms/cpc664e/basic.rom
-share/arnold/roms/cpc664e/file_id.diz
 share/arnold/roms/cpc664e/os.rom
-share/arnold/roms/cpcplus/out.tmp
 share/arnold/roms/cpcplus/system.cpr
 share/arnold/roms/kcc/kccbas.rom
 share/arnold/roms/kcc/kccos.rom
+share/arnold/roms/parados.rom
 share/doc/arnold/readme.linux
 share/doc/arnold/readme.txt
diff -r dfbaa2a2880e -r 518acd0146cb emulators/arnold/distinfo
--- a/emulators/arnold/distinfo Mon Apr 09 14:57:44 2018 +0000
+++ b/emulators/arnold/distinfo Mon Apr 09 15:03:22 2018 +0000
@@ -1,9 +1,13 @@
-$NetBSD: distinfo,v 1.5 2015/11/03 20:30:55 agc Exp $
+$NetBSD: distinfo,v 1.6 2018/04/09 15:03:22 ryoon Exp $
 
-SHA1 (arnsrc27012002.zip) = de3102b954d79176dce259375dc1824189027f8e
-RMD160 (arnsrc27012002.zip) = 7b43c157cbc4f6171ee9ef14cc282cc1692188c6
-SHA512 (arnsrc27012002.zip) = 035a8c935d221634f2ec9fb341291aa733dbf224d66a84e337928e77d0ff27de4875529b019d2600d87dfeeac998f2772d3ff6e0222d29fd9766540c595b28ec
-Size (arnsrc27012002.zip) = 916680 bytes
-SHA1 (patch-aa) = aff649f6c37cf7a321c182442d9faac44594b413
-SHA1 (patch-ab) = fde2730f3cf53d539543489a6d691ad7a6bc9d68
-SHA1 (patch-ac) = 0f7681cbf3f6345ce7427591936c607075fa76ac
+SHA1 (arnsrc04012004.zip) = 7020aa50d80f55cd10bf280fc3a8fdc0ef44e7c3
+RMD160 (arnsrc04012004.zip) = 9e9cce2b1a869769af10f951b1bdc0ca5d3b6461
+SHA512 (arnsrc04012004.zip) = a9503325cd7972294b80e715c3ff270544b210403acb5b9d69e56eec7aa4a4d10a54bfe0ad353bd5715c7213cd68212636d06520147b25abc9e38cce50ead02b
+Size (arnsrc04012004.zip) = 1082107 bytes
+SHA1 (patch-aa) = 7e576715cd16cbeaed1b87d51b2bc04d291716e2
+SHA1 (patch-ab) = 89d03d691f93aa5e48072c2d93579a1ddbe148ec
+SHA1 (patch-src_cpc_amsdos.c) = 9edeca19e486c24826222e5bb0950ba8a90d10d8
+SHA1 (patch-src_cpc_debugger_gdebug.c) = 3303e9779b9a7dc95fc02d07e339ecacaef476d7
+SHA1 (patch-src_cpc_render5.c) = 8c9150e424caed46079869576adbbc5645f1c855
+SHA1 (patch-src_unix_display__sdl.c) = b43d5f61cffee6f16d61d65b7a56f68390f612b9
+SHA1 (patch-src_unix_gtkui.c) = 847c4809707873a7b7769891866ae332e121f071
diff -r dfbaa2a2880e -r 518acd0146cb emulators/arnold/patches/patch-aa
--- a/emulators/arnold/patches/patch-aa Mon Apr 09 14:57:44 2018 +0000
+++ b/emulators/arnold/patches/patch-aa Mon Apr 09 15:03:22 2018 +0000
@@ -1,46 +1,34 @@
-$NetBSD: patch-aa,v 1.2 2005/11/03 21:40:13 rillig Exp $
+$NetBSD: patch-aa,v 1.3 2018/04/09 15:03:22 ryoon Exp $
 
---- src/Makefile.in.orig       Sat Jan 19 15:49:14 2002
+--- src/Makefile.in.orig       2004-01-04 05:18:40.000000000 +0000
 +++ src/Makefile.in
 @@ -25,7 +25,7 @@ SDLINC = @SDL_CFLAGS@
  SDLLIB = @SDL_LIBS@
  
  #-Wall for max warnings!
 -CFLAGS = @CPPFLAGS@ @CFLAGS@ $(GTKINC) $(SDLINC) @DEFS@ $(X11INC) -I. -DUNIX -Wall -Wno-unused
-+CFLAGS = @CPPFLAGS@ @CFLAGS@ $(GTKINC) $(SDLINC) @DEFS@ $(X11INC) -I. -DUNIX -Wall -Wno-unused -DSHAREDIR=\"${SHAREDIR}\"
++CFLAGS = @CPPFLAGS@ @CFLAGS@ $(GTKINC) $(SDLINC) @DEFS@ $(X11INC) -I. -DUNIX -DCPC_LSB_FIRST -Wall -Wno-unused
  #-g3 -pg -dm -dp -a
  LFLAGS1 = @LDFLAGS@ @LIBS@ $(GTKLIB) $(SDLLIB) $(X11LIBS)
  #debug
-@@ -55,9 +55,30 @@ IFACEGEN_O= ifacegen/ifacegen.o ifacegen
- UNIX_O= unix/main.o unix/host.o unix/global.o unix/settings.o \
-       unix/display.o unix/display_sdl.o unix/gtkui.o unix/sdlsound.o
+@@ -39,17 +39,17 @@ TARGET_CPU = @target_cpu@
+ CPC_O=        cpc/arnold.o cpc/asic.o cpc/audioevent.o cpc/bmp.o cpc/cpc.o \
+       cpc/crtc.o cpc/dumpym.o cpc/fdc.o cpc/fdd.o cpc/fdi.o \
+       cpc/garray.o cpc/multface.o cpc/printer.o cpc/psgplay.o \
+-      cpc/psg.o cpc/render.o cpc/render5.o cpc/scrsnap.o \
++      cpc/psg.o cpc/render.o cpc/render5.o \
+       cpc/snapshot.o cpc/sampload.o cpc/spo256.o cpc/pal.o \
+       cpc/voc.o cpc/tzxold.o cpc/wav.o cpc/westpha.o cpc/yiq.o \
+       cpc/z8536.o cpc/csw.o cpc/cassette.o cpc/amsdos.o \
+       cpc/debugger/gdebug.o cpc/debugger/breakpt.o \
+       cpc/diskimage/diskimg.o cpc/ramrom.o \
+       cpc/diskimage/dsk.o cpc/diskimage/extdsk.o \
+-      cpc/diskimage/iextdsk.o cpc/diskimage/maketrk.o \
++      cpc/diskimage/iextdsk.o \
+       cpc/z80/z80.o cpc/debugger/memdump.o \
+       cpc/riff.o cpc/snapv3.o \
+-      cpc/cheatsys.o cpc/cpcdbg.o cpc/messages.o
++      cpc/messages.o
  
-+CPC_O2=       arnold.o asic.o audioevent.o bmp.o cpc.o \
-+      crtc.o debugmain.o dirstuff.o dumpym.o fdc.o \
-+      garray.o multface.o printer.o psgplay.o \
-+      psg.o render.o render5.o scrsnap.o \
-+      snapshot.o sampload.o spo256.o \
-+      voc.o tzx.o wav.o westpha.o yiq.o \
-+      debug.o z8536.o \
-+      gdebug.o breakpt.o \
-+      diskimg.o \
-+      dsk.o extdsk.o \
-+      iextdsk.o maketrk.o \
-+      z80.o memdump.o \
-+      riff.o snapv3.o expbuf.o \
-+      cheatsys.o cpcdbg.o
-+ 
-+IFACEGEN_O2= ifacegen.o fnp.o romfn.o \
-+      filetool.o
-+ 
-+UNIX_O2= main.o host.o global.o settings.o \
-+      display.o display_sdl.o gtkui.o sdlsound.o
-+ 
- arnold:  $(CPC_O) $(IFACEGEN_O) $(UNIX_O)
--      $(BIND) -o arnold $(LFLAGS1) $(CPC_O) $(IFACEGEN_O)     \
--      $(UNIX_O) $(LFLAGS2) 
-+      $(BIND) -o arnold $(LFLAGS1) $(CPC_O2) $(IFACEGEN_O2)   \
-+      $(UNIX_O2) $(LFLAGS2) 
-       mv arnold ..
- ctags:
-       ctags -R
+ UNIX_O= unix/main.o unix/host.o unix/global.o \
+       unix/display.o unix/display_sdl.o unix/gtkui.o unix/sdlsound.o \
diff -r dfbaa2a2880e -r 518acd0146cb emulators/arnold/patches/patch-ab
--- a/emulators/arnold/patches/patch-ab Mon Apr 09 14:57:44 2018 +0000
+++ b/emulators/arnold/patches/patch-ab Mon Apr 09 15:03:22 2018 +0000
@@ -1,22 +1,49 @@
-$NetBSD: patch-ab,v 1.2 2005/11/03 21:40:13 rillig Exp $
+$NetBSD: patch-ab,v 1.3 2018/04/09 15:03:22 ryoon Exp $
 
---- src/unix/main.c.orig       Sun Nov  4 21:15:22 2001
+--- src/unix/main.c.orig       2004-01-04 05:10:54.000000000 +0000
 +++ src/unix/main.c
-@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
-               char LocalDirectory[1024];
-               char ProgramDirectory[1024]="";
-               
--              getcwd(ProgramDirectory, 1024);
-+              strcpy(ProgramDirectory, SHAREDIR);
+@@ -145,7 +145,7 @@ int main(int argc, char *argv[])
+ 
+       init_main(argc, argv);
+       
+-      GenericInterface_Finish();
++//    GenericInterface_Finish();
+ 
+ //    DirStuff_Finish();
+ 
+@@ -207,7 +207,7 @@ void init_main(int argc, char *argv[]) {
+       do {
+               int this_option_optind = optind ? optind : 1;
+               int option_index = 0;
+-              c = getopt_long_only (argc, argv, "",
++              c = getopt_long (argc, argv, "",
+                       long_options, &option_index);
+               printf("c: %i %c\n", c, c);
+               switch(c) {
+@@ -281,7 +281,7 @@ void init_main(int argc, char *argv[]) {
+       /* fprintf(stderr,"%s\n",LocalDirectory); */
  
- sprintf(LocalDirectory,"%s/roms/amsdose/",ProgramDirectory);
-       
-@@ -94,8 +94,6 @@ LocalDirectory);     
+ 
+-      GenericInterface_Initialise();
++      //GenericInterface_Initialise();
+ 
+   /* initialise cpc hardware */
+       CPC_Initialise();
+@@ -297,7 +297,7 @@ void init_main(int argc, char *argv[]) {
+               ConfigCPC6128();
  
-       if (CPCEmulation_Initialise())
-         {
--              chdir(ProgramDirectory);
--
-               CPC_SetCPCType(CPC_TYPE_CPC6128);
+               if (tape) {
+-                      if (!TapeImage_InsertFromFile(tape)) {
++                      if (!GenericInterface_InsertTape(tape)) {
+                               printf(Messages[73], tape);
+                       }
+               }
+@@ -381,7 +381,7 @@ void init_main(int argc, char *argv[]) {
+               }
  
-               if (argc!=0)
+               if (snapshot) {
+-                      if (!Snapshot_Load(snapshot)) {
++                      if (!GenericInterface_LoadSnapshot(snapshot)) {
+                               printf(Messages[78],
+                                       snapshot);
+                       }
diff -r dfbaa2a2880e -r 518acd0146cb emulators/arnold/patches/patch-ac
--- a/emulators/arnold/patches/patch-ac Mon Apr 09 14:57:44 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2006/10/18 23:30:46 wiz Exp $
-
---- src/cpc/tzx.c.orig 2001-10-21 09:43:06.000000000 +0000
-+++ src/cpc/tzx.c
-@@ -57,7 +57,7 @@ static unsigned long TapeImage_Flags;
- static unsigned char *pTapeBlockPtr = NULL;
- 
- static void   TapeImage_GetNextDataBlock(void);
--int           TapeImage_GetBlockLength(unsigned char *pBlock);
-+static int    TapeImage_GetBlockLength(unsigned char *pBlock);
- static void   TapeImage_HandleBlock(unsigned char *);
- 
- 
diff -r dfbaa2a2880e -r 518acd0146cb emulators/arnold/patches/patch-src_cpc_amsdos.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/arnold/patches/patch-src_cpc_amsdos.c   Mon Apr 09 15:03:22 2018 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_cpc_amsdos.c,v 1.1 2018/04/09 15:03:22 ryoon Exp $
+
+--- src/cpc/amsdos.c.orig      2004-01-03 23:22:58.000000000 +0000
++++ src/cpc/amsdos.c
+@@ -559,11 +559,11 @@ int AMSDOS_GetPrefixPriority(const char 
+ 
+               /* default prefixes in order searched for by AMSDOS */
+               /* assign higher priority to order prefixes are used */
+-              if (stricmp(pExtension,"   ")==0)
++              if (strcmp(pExtension,"   ")==0)
+                       return 3;
+-              if (stricmp(pExtension,"BAS")==0)
++              if (strcmp(pExtension,"BAS")==0)
+                       return 2;
+-              if (stricmp(pExtension,"BIN")==0)
++              if (strcmp(pExtension,"BIN")==0)
+                       return 1;
+       }
+ 
diff -r dfbaa2a2880e -r 518acd0146cb emulators/arnold/patches/patch-src_cpc_debugger_gdebug.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/arnold/patches/patch-src_cpc_debugger_gdebug.c  Mon Apr 09 15:03:22 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_cpc_debugger_gdebug.c,v 1.1 2018/04/09 15:03:22 ryoon Exp $
+
+Fix segfault on quit
+https://github.com/rofl0r/arnold/commit/08915c467477ad2316cd5a8997a3538738be8945
+
+--- src/cpc/debugger/gdebug.c.orig     2004-01-03 01:02:20.000000000 +0000
++++ src/cpc/debugger/gdebug.c
+@@ -2757,7 +2757,7 @@ void    Debug_DeleteComparisonList(DEBUG
+                 pNode = pList->Dummy.pNext;
+ 
+                 /* traverse as long as node isn't the dummy node */
+-                while (pNode!=&pList->Dummy)
++                while (pNode && pNode!=&pList->Dummy)
+                 {
+                         DEBUG_CMP_LIST_NODE *pNext;
+ 
diff -r dfbaa2a2880e -r 518acd0146cb emulators/arnold/patches/patch-src_cpc_render5.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/arnold/patches/patch-src_cpc_render5.c  Mon Apr 09 15:03:22 2018 +0000
@@ -0,0 +1,90 @@
+$NetBSD: patch-src_cpc_render5.c,v 1.1 2018/04/09 15:03:22 ryoon Exp $
+
+Fix segfault on quit
+https://github.com/rofl0r/arnold/commit/08915c467477ad2316cd5a8997a3538738be8945
+
+--- src/cpc/render5.c.orig     2004-01-02 06:00:40.000000000 +0000
++++ src/cpc/render5.c
+@@ -57,14 +57,16 @@ static int Render_CPCRenderHeight, Rende



Home | Main Index | Thread Index | Old Index