summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-11-09 05:47:28 +0000
committerminskim <minskim@pkgsrc.org>2004-11-09 05:47:28 +0000
commit3f8d1083987a8879adb702350230edff5bc52f78 (patch)
treec372412c3b7cd0d27cc023f1cba683f28d72a63b /emulators
parent502d57054d460e47dfb1971a62d9bfb83139ff6a (diff)
downloadpkgsrc-3f8d1083987a8879adb702350230edff5bc52f78.tar.gz
Import aliados from pkgsrc-wip. Packaged by ivaniclixx at gmail dot com,
and modified by Roland Illig and me. Aliados is a CP/M 80 emulator that instead of emulate a machine and run some variant of CP/M on it, emulates only the microprocessor and captures all CP/M system calls to execute it natively. Actually only emulates a small part of CP/M, but with that already can execute many programs, such as WordStar, Micrsoft Basic, Mallard Basic, Hi-Tech C, Turbo Pascal and many others. Aliados does not need to create disk images, it reads and writes in the native filesystem all files that match the CP/M name conventions.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/aliados/DESCR8
-rw-r--r--emulators/aliados/Makefile26
-rw-r--r--emulators/aliados/PLIST2
-rw-r--r--emulators/aliados/distinfo5
-rw-r--r--emulators/aliados/patches/patch-aa115
5 files changed, 156 insertions, 0 deletions
diff --git a/emulators/aliados/DESCR b/emulators/aliados/DESCR
new file mode 100644
index 00000000000..519b4c85626
--- /dev/null
+++ b/emulators/aliados/DESCR
@@ -0,0 +1,8 @@
+Aliados is a CP/M 80 emulator that instead of emulate a machine and
+run some variant of CP/M on it, emulates only the microprocessor and
+captures all CP/M system calls to execute it natively. Actually only
+emulates a small part of CP/M, but with that already can execute many
+programs, such as WordStar, Micrsoft Basic, Mallard Basic, Hi-Tech C,
+Turbo Pascal and many others. Aliados does not need to create disk
+images, it reads and writes in the native filesystem all files that
+match the CP/M name conventions.
diff --git a/emulators/aliados/Makefile b/emulators/aliados/Makefile
new file mode 100644
index 00000000000..c173d5686a0
--- /dev/null
+++ b/emulators/aliados/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/09 05:47:28 minskim Exp $
+#
+
+DISTNAME= aliados-0.1.1
+CATEGORIES= emulators
+MASTER_SITES= http://www.arrakis.es/~ninsesabe/aliados/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ivaniclixx@gmail.com
+HOMEPAGE= http://www.arrakis.es/~ninsesabe/aliados/
+COMMENT= CP/M 80 emulator
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_BUILDLINK3= YES
+NO_CONFIGURE= YES
+USE_LANGUAGES= c++
+USE_NCURSES= # tigetstr tparm setupterm
+
+INSTALLATION_DIRS= bin
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/aliados ${PREFIX}/bin/
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/aliados/PLIST b/emulators/aliados/PLIST
new file mode 100644
index 00000000000..1b454c04b60
--- /dev/null
+++ b/emulators/aliados/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/09 05:47:28 minskim Exp $
+bin/aliados
diff --git a/emulators/aliados/distinfo b/emulators/aliados/distinfo
new file mode 100644
index 00000000000..36babdcdb44
--- /dev/null
+++ b/emulators/aliados/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/09 05:47:28 minskim Exp $
+
+SHA1 (aliados-0.1.1.tgz) = adcc43f7bafc2ee11222002d03f306e8f561e3f6
+Size (aliados-0.1.1.tgz) = 50210 bytes
+SHA1 (patch-aa) = 2347332c491796a6df2468c6c814fbf9ffa04a8d
diff --git a/emulators/aliados/patches/patch-aa b/emulators/aliados/patches/patch-aa
new file mode 100644
index 00000000000..2201976eeb2
--- /dev/null
+++ b/emulators/aliados/patches/patch-aa
@@ -0,0 +1,115 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/11/09 05:47:28 minskim Exp $
+
+--- Makefile.orig 2004-03-20 13:31:28.000000000 -0600
++++ Makefile
+@@ -1,16 +1,17 @@
+ # Makefile para aliados
+
+ # Path to ncurses required in hp-ux.
+-CPPFLAGS=-W -Wall -I/opt/ncurses/include
++#CPPFLAGS=-W -Wall -I/opt/ncurses/include
++CPPFLAGS+= ${CXXFLAGS}
+
+ # To compile with console emulation using curses.
+-LDFLAGS=-lncurses -L/opt/ncurses/lib
++LDFLAGS+="-lncurses"
+
+ # To compile without console emulation.
+ #LDFLAGS=
+ #CURSESFLAGS=-DNO_CURSES
+
+-all: aliados disassemble
++all: aliados
+
+ # If you want to build the versions with and without libz80 at the same time.
+
+@@ -21,17 +22,17 @@ both: aliados aliadoslz disassemble
+ #------------------------------------------------
+
+ aliadoslz: aliadoslz.o cpmlz.o realconsole.o cpuz.o directory.o
+- g++ $(CPPFLAGS) $(LDFLAGS) -o aliadoslz -lz80 \
++ $(CXX) $(CPPFLAGS) $(LDFLAGS) -o aliadoslz -lz80 \
+ aliadoslz.o cpmlz.o realconsole.o cpuz.o directory.o printer.o
+
+ aliadoslz.o: aliados.cpp cpm.h console.h realconsole.h printer.h
+- g++ $(CPPFLAGS) -o aliadoslz.o -c aliados.cpp
++ $(CXX) $(CPPFLAGS) -o aliadoslz.o -c aliados.cpp
+
+ cpmlz.o: cpm.cpp cpm.h cpu.h console.h directory.h printer.h
+- g++ $(CPPFLAGS) -o cpmlz.o -c cpm.cpp
++ $(CXX) $(CPPFLAGS) -o cpmlz.o -c cpm.cpp
+
+ cpuz.o: cpu.cpp cpu.h
+- g++ $(CPPFLAGS) -o cpuz.o -c cpu.cpp
++ $(CXX) $(CPPFLAGS) -o cpuz.o -c cpu.cpp
+
+ #------------------------------------------------
+ # Version using ImcZ80.
+@@ -41,7 +42,7 @@ cpuz.o: cpu.cpp cpu.h
+
+ # Uncomment this if you compile with ImcZ80 and with libz80.
+ #aliados: aliados.o cpm.o Z80.o realconsole.o cpu.o
+-# g++ $(CPPFLAGS) $(LDFLAGS) -o aliados \
++# $(CXX) $(CPPFLAGS) $(LDFLAGS) -o aliados \
+ # aliados.o cpm.o realconsole.o Z80.o cpu.o \
+ # directory.o printer.o \
+ # -lz80
+@@ -50,47 +51,47 @@ cpuz.o: cpu.cpp cpu.h
+ aliados: aliados.o cpm.o Z80.o realconsole.o cpu.o disasm.o \
+ directory.o printer.o
+
+- g++ $(CPPFLAGS) -o aliados \
++ $(CXX) $(CPPFLAGS) -o aliados \
+ aliados.o cpm.o realconsole.o Z80.o cpu.o \
+ disasm.o directory.o printer.o \
+ $(LDFLAGS)
+
+ aliados.o: aliados.cpp cpm.h console.h realconsole.h printer.h
+- g++ $(CPPFLAGS) -DUSE_ImcZ80 -c aliados.cpp
++ $(CXX) $(CPPFLAGS) -DUSE_ImcZ80 -c aliados.cpp
+
+ cpm.o: cpm.cpp cpm.h cpu.h console.h Z80.hxx directory.h printer.h
+- g++ $(CPPFLAGS) -DUSE_ImcZ80 -c cpm.cpp
++ $(CXX) $(CPPFLAGS) -DUSE_ImcZ80 -c cpm.cpp
+
+ cpu.o: cpu.cpp cpu.h Z80.hxx disasm.h
+- g++ $(CPPFLAGS) -DUSE_ImcZ80 -c cpu.cpp
++ $(CXX) $(CPPFLAGS) -DUSE_ImcZ80 -c cpu.cpp
+
+ Z80.o: Z80.cxx Z80.hxx z80ops.hxx cbops.hxx edops.hxx
+- g++ -c Z80.cxx
++ $(CXX) -c Z80.cxx
+
+ #------------------------------------------------
+ # Common to all versions.
+ #------------------------------------------------
+
+ realconsole.o: realconsole.cpp realconsole.h console.h
+- g++ $(CPPFLAGS) $(CURSESFLAGS) -c realconsole.cpp
++ $(CXX) $(CPPFLAGS) $(CURSESFLAGS) -c realconsole.cpp
+
+ disasm.o: disasm.cpp disasm.h cpu.h
+- g++ $(CPPFLAGS) -c disasm.cpp
++ $(CXX) $(CPPFLAGS) -c disasm.cpp
+
+ directory.o: directory.cpp directory.h
+- g++ $(CPPFLAGS) -c directory.cpp
++ $(CXX) $(CPPFLAGS) -c directory.cpp
+
+ printer.o: printer.cpp printer.h
+- g++ $(CPPFLAGS) -c printer.cpp
++ $(CXX) $(CPPFLAGS) -c printer.cpp
+
+ # disassemble is a tiny disassembler that uses the disassemble code
+ # of the debugger. Works correctly only with .COM files.
+
+ disassemble.o: disassemble.cpp cpu.h disasm.h Z80.hxx
+- g++ $(CPPFLAGS) -c disassemble.cpp
++ $(CXX) $(CPPFLAGS) -c disassemble.cpp
+
+ disassemble: disassemble.o cpu.o disasm.o Z80.o
+- g++ $(CPPFLAGS) -o disassemble disassemble.o cpu.o disasm.o Z80.o
++ $(CXX) $(CPPFLAGS) -o disassemble disassemble.o cpu.o disasm.o Z80.o
+
+ tgz:
+ tar cf - Makefile *.cpp *.h *.cxx *.hxx \