summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2003-09-24 10:53:27 +0000
committerdillo <dillo@pkgsrc.org>2003-09-24 10:53:27 +0000
commit783e6457621ee7a194c648770bc52c2c10bc317d (patch)
treec56d30ceb35510345d6f055bdb323fe74dedc2a2 /emulators
parent727385f98fd5126f4d43db8f86718068e0cd42a6 (diff)
downloadpkgsrc-783e6457621ee7a194c648770bc52c2c10bc317d.tar.gz
Initial import of arnold-20020127:
Arnold is an Amstrad CPC, Amstrad CPC+ and KC Compact emulator. Arnold is accurate and emulates the Amstrad systems to the cycle level. It also emulates 99% of all demo effects.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/arnold/DESCR3
-rw-r--r--emulators/arnold/Makefile48
-rw-r--r--emulators/arnold/PLIST28
-rw-r--r--emulators/arnold/distinfo6
-rw-r--r--emulators/arnold/patches/patch-aa46
-rw-r--r--emulators/arnold/patches/patch-ab22
6 files changed, 153 insertions, 0 deletions
diff --git a/emulators/arnold/DESCR b/emulators/arnold/DESCR
new file mode 100644
index 00000000000..69e5c27d493
--- /dev/null
+++ b/emulators/arnold/DESCR
@@ -0,0 +1,3 @@
+Arnold is an Amstrad CPC, Amstrad CPC+ and KC Compact emulator.
+Arnold is accurate and emulates the Amstrad systems to the cycle
+level. It also emulates 99% of all demo effects.
diff --git a/emulators/arnold/Makefile b/emulators/arnold/Makefile
new file mode 100644
index 00000000000..029aef87128
--- /dev/null
+++ b/emulators/arnold/Makefile
@@ -0,0 +1,48 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/09/24 10:53:27 dillo Exp $
+#
+
+DISTNAME= arnsrc27012002
+PKGNAME= arnold-20020127
+WRKSRC= ${WRKDIR}/arnold/src
+CATEGORIES= emulators
+MASTER_SITES= http://arnold.emuunlim.com/download/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= dillo@NetBSD.org
+HOMEPAGE= http://arnold.emuunlim.com/
+COMMENT= Amstrad CPC, Amstrad CPC+ and KC Compact emulator
+
+# we want case sensitive file names.
+EXTRACT_CMD.zip= ${LOCALBASE}/bin/unzip -aqo $${extract_file}
+
+USE_BUILDLINK2= yes
+GNU_CONFIGURE= yes
+ALL_TARGET= arnold
+
+SHAREDIR= ${PREFIX}/share/arnold
+DOCDIR= ${PREFIX}/share/doc/arnold
+MAKE_ENV+= SHAREDIR=${SHAREDIR}
+
+post-extract:
+ ${CHMOD} +x ${WRKSRC}/configure
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/../arnold ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${SHAREDIR}
+ ${INSTALL_DATA_DIR} ${SHAREDIR}/roms
+ for dir in amsdose cpc464e cpc6128e cpc664e cpcplus kcc; \
+ do \
+ ${INSTALL_DATA_DIR} ${SHAREDIR}/roms/$$dir; \
+ for f in ${WRKSRC}/../roms/$$dir/*; \
+ do \
+ ${INSTALL_DATA} $$f ${SHAREDIR}/roms/$$dir; \
+ done \
+ done
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../readme.txt ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../readme.linux ${DOCDIR}
+
+.include "../../mk/ossaudio.buildlink2.mk"
+.include "../../devel/SDL/buildlink2.mk"
+.include "../../x11/gtk/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/arnold/PLIST b/emulators/arnold/PLIST
new file mode 100644
index 00000000000..f5846bbb9ca
--- /dev/null
+++ b/emulators/arnold/PLIST
@@ -0,0 +1,28 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/24 10:53:27 dillo Exp $
+bin/arnold
+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/doc/arnold/readme.txt
+share/doc/arnold/readme.linux
+@dirrm share/doc/arnold
+@dirrm share/arnold/roms/kcc
+@dirrm share/arnold/roms/cpcplus
+@dirrm share/arnold/roms/cpc664e
+@dirrm share/arnold/roms/cpc6128e
+@dirrm share/arnold/roms/cpc464e
+@dirrm share/arnold/roms/amsdose
+@dirrm share/arnold/roms
+@dirrm share/arnold
diff --git a/emulators/arnold/distinfo b/emulators/arnold/distinfo
new file mode 100644
index 00000000000..51135be3fff
--- /dev/null
+++ b/emulators/arnold/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/09/24 10:53:27 dillo Exp $
+
+SHA1 (arnsrc27012002.zip) = de3102b954d79176dce259375dc1824189027f8e
+Size (arnsrc27012002.zip) = 916680 bytes
+SHA1 (patch-aa) = 83ba9c44664d7d6fb938db0d250b4fc24702c09f
+SHA1 (patch-ab) = 3a733e50ee6f12dc2c37c378409e765a8b4d0c8d
diff --git a/emulators/arnold/patches/patch-aa b/emulators/arnold/patches/patch-aa
new file mode 100644
index 00000000000..5f183f4ec47
--- /dev/null
+++ b/emulators/arnold/patches/patch-aa
@@ -0,0 +1,46 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/09/24 10:53:27 dillo Exp $
+
+--- Makefile.in.orig Sat Jan 19 15:49:14 2002
++++ 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}\"
+ #-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
+
++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
diff --git a/emulators/arnold/patches/patch-ab b/emulators/arnold/patches/patch-ab
new file mode 100644
index 00000000000..fe6def80ced
--- /dev/null
+++ b/emulators/arnold/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/09/24 10:53:27 dillo Exp $
+
+--- unix/main.c.orig Sun Nov 4 21:15:22 2001
++++ 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);
+
+ sprintf(LocalDirectory,"%s/roms/amsdose/",ProgramDirectory);
+
+@@ -94,8 +94,6 @@ LocalDirectory);
+
+ if (CPCEmulation_Initialise())
+ {
+- chdir(ProgramDirectory);
+-
+ CPC_SetCPCType(CPC_TYPE_CPC6128);
+
+ if (argc!=0)