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 | |
parent | 3685d4b9a9d1bea8b1fc33374376000f762d5dc2 (diff) | |
download | ports-23cdd5ebb9d559aab87acecc1bfabffb28dba02c.tar.gz ports-23cdd5ebb9d559aab87acecc1bfabffb28dba02c.zip |
Notes
Diffstat (limited to 'emulators/cpmemu')
-rw-r--r-- | emulators/cpmemu/Makefile | 22 | ||||
-rw-r--r-- | emulators/cpmemu/distinfo | 1 | ||||
-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 |
6 files changed, 106 insertions, 12 deletions
diff --git a/emulators/cpmemu/Makefile b/emulators/cpmemu/Makefile index 0d84e0cf0825..af0655a99083 100644 --- a/emulators/cpmemu/Makefile +++ b/emulators/cpmemu/Makefile @@ -1,5 +1,5 @@ # New ports collection makefile for: cpm-emulator -# Version required: 0.2.1 +# Version required: 0.2.1.1 # Date created: 28 June 1995 # Whom: janek@gaja.ipan.lublin.pl # @@ -7,19 +7,17 @@ # DISTNAME= cpm-0.2.1 -PKGNAME= cpmemu-0.2.1 +PKGNAME= cpmemu-0.2.1.1 CATEGORIES= emulators -MASTER_SITES= ftp://ftp.cdrom.com/pub/linux/slackware-4.0/source/extra-stuff/CPM-80-emulator/ +MASTER_SITES= ${MASTER_SITE_SUNSITE} \ + ftp://ftp.cdrom.com/pub/linux/slackware-4.0/source/extra-stuff/CPM-80-emulator/ +MASTER_SITE_SUBDIR= system/emulators -MAINTAINER= ports@FreeBSD.org +PATCH_SITES= ${MASTER_SITE_SUNSITE} +PATCH_SITE_SUBDIR= system/emulators +PATCHFILES= cpm-0.2.1-glibc-rjm.patch.gz +PATCH_DIST_STRIP= -p1 -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/cpm ${PREFIX}/bin/cpmemu - ${INSTALL_PROGRAM} ${WRKSRC}/format ${PREFIX}/bin/cpmformat - ${MKDIR} ${PREFIX}/share/cpm - ${INSTALL_DATA} ${WRKSRC}/z80-binaries/cpm.sys ${PREFIX}/share/cpm - ${INSTALL_DATA} ${WRKSRC}/z80-binaries/cd.com ${PREFIX}/share/cpm - ${INSTALL_DATA} ${WRKSRC}/z80-binaries/link.com ${PREFIX}/share/cpm - ${INSTALL_DATA} ${WRKSRC}/z80-binaries/xccp.com ${PREFIX}/share/cpm +MAINTAINER= ports@FreeBSD.org .include <bsd.port.mk> diff --git a/emulators/cpmemu/distinfo b/emulators/cpmemu/distinfo index 6acaef148c8b..f82e87737682 100644 --- a/emulators/cpmemu/distinfo +++ b/emulators/cpmemu/distinfo @@ -1 +1,2 @@ MD5 (cpm-0.2.1.tar.gz) = b6aa29c7164e10c2a0ad2f4ac72c3a83 +MD5 (cpm-0.2.1-glibc-rjm.patch.gz) = 029b902a7a59239182ea264e02e33345 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; |