diff options
author | Steve Price <steve@FreeBSD.org> | 1999-11-26 17:50:47 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-11-26 17:50:47 +0000 |
commit | 23cdd5ebb9d559aab87acecc1bfabffb28dba02c (patch) | |
tree | bfaf2d2facc1d91843a581c1e58192ec1bb6b1a9 /emulators/cpmemu/files | |
parent | Update to version 0.4.9.5. (diff) |
* Updated version to 0.2.1.1
* Added MetaLab(sunsite) mirror to MASTER_SITES
* Fixed some files to respect CFLAGS properly
PR: 14903
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Notes
Notes:
svn path=/head/; revision=23357
Diffstat (limited to 'emulators/cpmemu/files')
-rw-r--r-- | emulators/cpmemu/files/patch-ab | 52 | ||||
-rw-r--r-- | emulators/cpmemu/files/patch-ac | 11 | ||||
-rw-r--r-- | emulators/cpmemu/files/patch-ad | 11 | ||||
-rw-r--r-- | emulators/cpmemu/files/patch-ae | 21 |
4 files changed, 95 insertions, 0 deletions
diff --git a/emulators/cpmemu/files/patch-ab b/emulators/cpmemu/files/patch-ab new file mode 100644 index 000000000000..59c238229f1b --- /dev/null +++ b/emulators/cpmemu/files/patch-ab @@ -0,0 +1,52 @@ +--- Makefile.orig Mon Nov 15 06:49:52 1999 ++++ Makefile Mon Nov 15 06:54:21 1999 +@@ -2,26 +2,26 @@ + + + # basic prefix for installation +-PREFIX = /usr/local ++PREFIX ?= /usr/local + + # where to install `cpm' executable. + BINDIR = $(PREFIX)/bin + + # where `cpm' looks for its files (cpm.sys and .com files). +-CPMLIBDIR = $(PREFIX)/lib/cpm ++CPMLIBDIR = $(PREFIX)/share/cpm + + + # You shouldn't need to edit below this line. + +-CC = gcc ++CC ?= gcc + +-CFLAGS = -O2 -pipe -ansi -Wall \ ++CFLAGS += -ansi -Wall \ + -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align \ + -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \ + -Wnested-externs -Wwrite-strings \ + -DCPMLIBDIR=\"$(CPMLIBDIR)\" + +-LDFLAGS = -s ++LDFLAGS += -s + + OBJS = single.o z80emu.o em.o io.o bios.o \ + commands.o running.o main.o disneu.o disz80.o low.o +@@ -42,11 +42,14 @@ + cpm: $(OBJS) + $(CC) $(LDFLAGS) -o cpm $(OBJS) + ++format: format.o ++ $(CC) $(LDFLAGS) -o format format.o ++ + clean: + rm -f *~ loads.s makeloads *.o $(TARGETS) + + install: all +- install -m 511 cpm $(BINDIR) ++ ${BSD_INSTALL_PROGRAM} cpm $(BINDIR)/cpmemu ++ ${BSD_INSTALL_PROGRAM} format $(BINDIR)/cpmformat + -mkdir $(CPMLIBDIR) +- chmod 755 $(CPMLIBDIR) +- install -m 444 z80-binaries/* $(CPMLIBDIR) ++ ${BSD_INSTALL_DATA} z80-binaries/* $(CPMLIBDIR) diff --git a/emulators/cpmemu/files/patch-ac b/emulators/cpmemu/files/patch-ac new file mode 100644 index 000000000000..ba9053544fd9 --- /dev/null +++ b/emulators/cpmemu/files/patch-ac @@ -0,0 +1,11 @@ +--- bios.c.orig Mon Nov 15 06:33:54 1999 ++++ bios.c Mon Nov 15 06:39:55 1999 +@@ -227,7 +227,7 @@ + case BIOS: /* System Reset (coldboot) */ + case DIRBUF-20: + if (!silent_exit) +- printf("\nCp/M BIOS COLDBOOT takes you back to Linux\n"); ++ printf("\nCp/M BIOS COLDBOOT takes you back to FreeBSD\n"); + exit(0); + case BIOS+3: /* System Reset (warmboot) */ + case DIRBUF-19: diff --git a/emulators/cpmemu/files/patch-ad b/emulators/cpmemu/files/patch-ad new file mode 100644 index 000000000000..c655ccbcf663 --- /dev/null +++ b/emulators/cpmemu/files/patch-ad @@ -0,0 +1,11 @@ +--- io.c.orig Wed Jun 22 03:25:46 1994 ++++ io.c Mon Nov 15 06:31:36 1999 +@@ -13,7 +13,7 @@ + /*****************************************************************************/ + #include "cpmemu.h" + +-#define HAVE_RAW_IO ++#undef HAVE_RAW_IO + + /* magic for character I/O */ + #include <unistd.h> diff --git a/emulators/cpmemu/files/patch-ae b/emulators/cpmemu/files/patch-ae new file mode 100644 index 000000000000..9cd4c47a22d5 --- /dev/null +++ b/emulators/cpmemu/files/patch-ae @@ -0,0 +1,21 @@ +--- low.c.orig Mon Nov 15 06:33:54 1999 ++++ low.c Mon Nov 15 06:41:26 1999 +@@ -21,7 +21,6 @@ + #include "cpmemu.h" + #include <ctype.h> + #include <unistd.h> +-#include <sys/perm.h> /* needed for ioperm() -rjm */ + #include <sys/types.h> + #include <sys/time.h> + #include <signal.h> +@@ -88,10 +87,8 @@ + + /* get access to sound port */ + cptr = NULL; +- if (ioperm(0x61, 1, 1)) { + hardware_access = 0; /* no access to speaker port */ + return; +- } + + /* install signal handler */ + sa.sa_handler = tickerint; |