git: bfa5e85c5e76 - main - emulators/yaze-ag: new port for the advanced YAZE CPM emulator

Stefan Eßer se at FreeBSD.org
Fri Apr 16 19:24:57 UTC 2021


The branch main has been updated by se:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bfa5e85c5e769dcdc883ed2edd2b119bf2f6920e

commit bfa5e85c5e769dcdc883ed2edd2b119bf2f6920e
Author:     Stefan Eßer <se at FreeBSD.org>
AuthorDate: 2021-04-16 17:51:54 +0000
Commit:     Stefan Eßer <se at FreeBSD.org>
CommitDate: 2021-04-16 19:24:45 +0000

    emulators/yaze-ag: new port for the advanced YAZE CPM emulator
    
    YAZE-AG is an excellent Z80 emulator, written in ANSI C, that works
    on many Unix architectures. It is fast, emulates undocumented opcodes,
    and passes instruction regression tests against real Z80 hardware.
---
 emulators/yaze-ag/1                             | 155 ++++++++++++++++++++++++
 emulators/yaze-ag/Makefile                      |  39 ++++++
 emulators/yaze-ag/distinfo                      |   3 +
 emulators/yaze-ag/files/patch-Makefile__freebsd | 122 +++++++++++++++++++
 emulators/yaze-ag/files/patch-yaze.sh           |  31 +++++
 emulators/yaze-ag/pkg-descr                     |   5 +
 emulators/yaze-ag/pkg-plist                     | 154 +++++++++++++++++++++++
 7 files changed, 509 insertions(+)

diff --git a/emulators/yaze-ag/1 b/emulators/yaze-ag/1
new file mode 100644
index 000000000000..929ad0cd58b1
--- /dev/null
+++ b/emulators/yaze-ag/1
@@ -0,0 +1,155 @@
+/you/have/to/check/what/makeplist/gives/you
+bin/cdm
+bin/cpm
+bin/yaze
+bin/yaze_bin
+bin/z80
+man/man1/cdm.1.gz
+man/man1/cpm.1.gz
+man/man1/yaze.1.gz
+man/man1/z80.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/00-INDEX.doc
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL-2.20
+%%PORTDOCS%%%%DOCSDIR%%/README-1.10
+%%PORTDOCS%%%%DOCSDIR%%/README-2.20
+%%PORTDOCS%%%%DOCSDIR%%/README_BIOS3_Z80
+%%PORTDOCS%%%%DOCSDIR%%/README_BOOTSYS
+%%PORTDOCS%%%%DOCSDIR%%/html/BOOTSYS.Z80.html
+%%PORTDOCS%%%%DOCSDIR%%/html/How_to_read.txt
+%%PORTDOCS%%%%DOCSDIR%%/html/INSTALL-2.51.0.html
+%%PORTDOCS%%%%DOCSDIR%%/html/README-1.10.html
+%%PORTDOCS%%%%DOCSDIR%%/html/README-2.51.0.html
+%%PORTDOCS%%%%DOCSDIR%%/html/README_BIOS3_Z80.html
+%%PORTDOCS%%%%DOCSDIR%%/html/README_BOOTSYS.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cdm.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/000.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/001.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/002.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/003.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/004.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/005.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/006.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/007.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/008.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/009.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/010.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/011.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/012.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/013.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/014.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/015.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/016.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/017.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/018.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/019.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/020.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/021.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/022.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/023.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/024.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/025.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/026.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/027.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/028.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/029.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/030.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/031.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/032.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/033.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/034.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/035.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/036.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/037.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/038.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/039.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/040.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/041.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/042.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/043.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/044.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/045.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/046.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/047.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/048.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/049.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/050.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/051.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/052.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/053.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/054.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/055.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/056.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/057.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/058.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/059.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/060.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/061.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/062.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/063.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/064.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/065.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/066.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/067.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/068.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/069.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/070.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/071.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/072.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/073.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/074.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/075.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/076.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/077.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/078.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/079.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/080.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/081.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/082.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/083.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/084.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/085.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/086.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/087.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/088.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/089.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/090.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/091.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/092.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/093.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/094.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/095.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/096.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/097.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/index.html
+%%PORTDOCS%%%%DOCSDIR%%/html/e_mail_yaze-ag.png
+%%PORTDOCS%%%%DOCSDIR%%/html/happy.gif
+%%PORTDOCS%%%%DOCSDIR%%/html/index.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mintty.pdf
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze-ag_doc.html
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze-keys.odt
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze-keys.pdf
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze_doc.html
+%%PORTDOCS%%%%DOCSDIR%%/yaze-ag.doc
+%%PORTDOCS%%%%DOCSDIR%%/yaze.doc
+%%DATADIR%%/disks/BOOT_UTILS.ydsk.gz
+%%DATADIR%%/disks/CPM3_SYS.ydsk.gz
+%%DATADIR%%/disks/bios3.ydsk.gz
+%%DATADIR%%/disks/disksort.tar.gz
+%%DATADIR%%/disks/disksort.ydsk.gz
+%%DATADIR%%/disks/hi-c-z280-compiler.ydsk.gz
+%%DATADIR%%/disks/kermit_szrz.ydsk.gz
+%%DATADIR%%/disks/mmu-utils.ydsk.gz
+%%DATADIR%%/disks/spl.ydsk.gz
+%%DATADIR%%/disks/test-utils-1.10.ydsk.gz
+%%DATADIR%%/disks/testdsk.ydsk.gz
+%%DATADIR%%/disks/turbo-modula-2.ydsk.gz
+%%DATADIR%%/disks/unixlike.ydsk.gz
+%%DATADIR%%/disks/yazerc
+%%DATADIR%%/disks/zinc.ydsk.gz
+%%DATADIR%%/m2.ktt
+%%DATADIR%%/sample.ktt
+%%DATADIR%%/yaze-cpm3.boot
+%%DATADIR%%/yaze.boot
+%%DATADIR%%/yaze.ktt
diff --git a/emulators/yaze-ag/Makefile b/emulators/yaze-ag/Makefile
new file mode 100644
index 000000000000..ab3c39299eab
--- /dev/null
+++ b/emulators/yaze-ag/Makefile
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+PORTNAME=	yaze-ag
+DISTVERSION=	2.51.0-rc1
+CATEGORIES=	emulators
+MASTER_SITES=	http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/devel/
+
+MAINTAINER=	se at FreeBSD.org
+COMMENT=	Z80 and CP/M-80 emulator
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libreadline.so:devel/readline
+
+USE_CSTD=	c11
+
+MAKEFILE=	Makefile_freebsd
+MAKE_ENV=	BINDIR=${PREFIX}/bin \
+		DOCDIR=${DOCSDIR} \
+		DOCHTMLDIR=${DOCSDIR}/html \
+		DSKDIR=${DATADIR}/disks \
+		LIBDIR=${DATADIR} \
+		MANDIR=${MAN1PREFIX}/man/man1 \
+		OPTIMIZE="${CFLAGS}" \
+		STAGEDIR="${STAGEDIR}"
+
+OPTIONS_DEFINE=	DOCS
+
+post-build:
+		${REINPLACE_CMD} -e 's:%%DATADIR%%:${DATADIR}:' \
+				 -e 's:%%DOCSDIR%%:${DOCSDIR}:' \
+				 -e 's:%%LIBEXECDIR%%:${PREFIX}/libexec:' \
+							${WRKSRC}/yaze.sh
+
+do-install-DOCS-on:
+		${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC} -f ${MAKEFILE} install-doc
+
+.include <bsd.port.mk>
diff --git a/emulators/yaze-ag/distinfo b/emulators/yaze-ag/distinfo
new file mode 100644
index 000000000000..9aadd03a3aec
--- /dev/null
+++ b/emulators/yaze-ag/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1618258783
+SHA256 (yaze-ag-2.51.0-rc1.tar.gz) = 9e2688672acad53a973a8521278d6ec91ebe3b24c665d729801d59b9a7b256b2
+SIZE (yaze-ag-2.51.0-rc1.tar.gz) = 3671660
diff --git a/emulators/yaze-ag/files/patch-Makefile__freebsd b/emulators/yaze-ag/files/patch-Makefile__freebsd
new file mode 100644
index 000000000000..ee55f0b1655d
--- /dev/null
+++ b/emulators/yaze-ag/files/patch-Makefile__freebsd
@@ -0,0 +1,122 @@
+--- Makefile_freebsd.orig	2020-09-18 14:28:23 UTC
++++ Makefile_freebsd
+@@ -1,17 +1,16 @@
+ # Makefile for yaze-ag
+-
+ BUILD = " (build for INTEL x86_32Bit)"
+ 
+ # CC must be an ANSI-C compiler
+-CC            =	gcc
++#CC            =	gcc
+ 
+ #where you want the binaries and manual page
+-BINDIR	      = /usr/local/bin
+-MANDIR	      = /usr/local/man/man1
+-LIBDIR	      = /usr/local/lib/yaze
+-DSKDIR        = $(LIBDIR)/disks
+-DOCDIR        = $(LIBDIR)/doc
+-DOCHTMLDIR    = $(LIBDIR)/doc_html
++#BINDIR	      = $(PREFIX)/bin
++#MANDIR	      = $(PREFIX)/man/man1
++#LIBDIR	      = $(PREFIX)/share/yaze-ag
++#DSKDIR        = $(LIBDIR)/disks
++#DOCDIR        = $(PREFIX)/share/doc/yaze-ag
++#DOCHTMLDIR    = $(DOCDIR)/html
+ 
+ #OPTIMIZE	= -g -m486
+ #OPTIMIZE	= -g -save-temps -m486
+@@ -58,7 +57,7 @@ DOCHTMLDIR    = $(LIBDIR)/doc_html
+ #OPTIMIZE	= -O3 -march=athlon-mp
+ #OPTIMIZE	= -O3 -march=athlon64	# 64 Bit AMD
+ #OPTIMIZE	= -O3 -march=athlon64-sse3
+-OPTIMIZE	= -O3 -march=barcelona
++#OPTIMIZE	= -O3 -march=barcelona
+ 
+ # -DUSE_GNU_READLINE for command recall/editing and filename completion
+ # -DBGii_BUG works around a problem in Backgrounder II
+@@ -106,7 +105,7 @@ OPTIMIZE	= -O3 -march=barcelona
+ # solaris2, freebsd and cygwin needs -D__EXTENSIONS__
+ # linux needs -D_BSD_SOURCE
+ #
+-OPTIONS	= -DBIOS -D__EXTENSIONS__ -DMMU -DBOOTSYS -DMULTIO # -DSHOWDRV
++OPTIONS	= -DBIOS -D__EXTENSIONS__ -DMMU -DBOOTSYS -DMULTIO -DUSE_GNU_READLINE # -DSHOWDRV
+ 
+ # Link with CP/M BIOS support,
+ YAZE_OBJS     = yaze.o mem_mmu.o simz80.o simz80_wts.o ytimer.o ybios.o \
+@@ -121,7 +120,7 @@ KT_OBJS       = keytest.o conin.o keytran.o nulrq.o
+ #  (you don't need -liberty on linux or BSD systems)
+ #
+ #LIBS	      = -lreadline -lncurses
+-LIBS	      =
++LIBS	      = -L$(PREFIX)/lib -lreadline
+ 
+ # a bsd-like install program (/usr/ucb/install on Solaris2)
+ INSTALL	      = install
+@@ -130,12 +129,12 @@ INSTALL	      = install
+ ###### you should not need to change anything below this line ######
+ # CWARN	      = -ansi -pedantic -Wall -Wshadow \
+ #		-Wpointer-arith -Wnested-externs -Winline
+-CWARN	      = -ansi -pedantic -Wall -Wshadow \
++CWARN	      = -pedantic -Wall -Wshadow \
+ 		-Wpointer-arith -Wnested-externs -Winline \
+ 		-Wno-attributes -Wno-char-subscripts -Wno-unused-variable
+ # CWARN	      = -ansi -Wall 
+ CFLAGS        =	$(CWARN) $(OPTIMIZE) $(OPTIONS) -DLIBDIR=\"$(LIBDIR)/\" \
+-		-DBUILD=\"$(BUILD)\"
++		-DBUILD=\"$(BUILD)\" -I$(PREFIX)/include
+ 
+ SRCS	      = yaze.c mem_mmu.c simz80.c simz80_wts.c ytimer.c io.c ybios.c monitor.c cdm.c \
+ 		conin.c keytest.c keytran.c nulrq.c \
+@@ -209,30 +208,28 @@ cdm:		cdm.o
+ 		$(CC) $(CFLAGS) cdm.o $(LIBS) -o $@
+ 
+ install:	all
+-		rm -rf $(LIBDIR)
+-		mkdir -p $(LIBDIR)
+-		mkdir -p $(MANDIR)
+-		$(INSTALL) -s -c -m 755 yaze_bin $(BINDIR)
+-		$(INSTALL) -s -c -m 755 cdm $(BINDIR)
+-		$(INSTALL) -c -m 755 yaze $(BINDIR)
+-		ln -f -s $(BINDIR)/yaze $(BINDIR)/cpm
+-		ln -f -s $(BINDIR)/yaze $(BINDIR)/z80
+-		$(INSTALL) -c -m 644 yaze-cpm3.boot $(LIBDIR)
+-		$(INSTALL) -c -m 644 yaze.boot $(LIBDIR)
+-		$(INSTALL) -c -m 644 m2.ktt $(LIBDIR)
+-		$(INSTALL) -c -m 644 sample.ktt $(LIBDIR)
+-		$(INSTALL) -c -m 644 yaze.ktt $(LIBDIR)
+-		$(INSTALL) -c -m 644 yaze.1 $(MANDIR)
+-		$(INSTALL) -c -m 644 cdm.1 $(MANDIR)
+-		$(INSTALL) -c -m 644 cpm.1 $(MANDIR)
+-		$(INSTALL) -c -m 644 z80.1 $(MANDIR)
+-		/bin/sh install_disks.sh $(DSKDIR)
+-		/bin/sh install_doc.sh $(DOCDIR)
+-		/bin/sh install_doc_html.sh $(DOCHTMLDIR)
+-		(cd $(LIBDIR); \
+-		rm -f md5 /tmp/md5.yaze-ag; \
+-		find . -type f -exec md5sum -b {} >>/tmp/md5.yaze-ag \; ; \
+-		mv /tmp/md5.yaze-ag md5)
++		rm -rf $(STAGEDIR)$(LIBDIR)
++		mkdir -p $(STAGEDIR)$(LIBDIR)
++		mkdir -p $(STAGEDIR)$(MANDIR)
++		$(INSTALL) -s -c -m 755 yaze_bin $(STAGEDIR)$(PREFIX)/libexec
++		$(INSTALL) -s -c -m 755 cdm $(STAGEDIR)$(BINDIR)
++		$(INSTALL) -c -m 755 yaze $(STAGEDIR)$(BINDIR)
++		ln -f -s yaze $(STAGEDIR)$(BINDIR)/cpm
++		ln -f -s yaze $(STAGEDIR)$(BINDIR)/z80
++		$(INSTALL) -c -m 644 yaze-cpm3.boot $(STAGEDIR)$(LIBDIR)
++		$(INSTALL) -c -m 644 yaze.boot $(STAGEDIR)$(LIBDIR)
++		$(INSTALL) -c -m 644 m2.ktt $(STAGEDIR)$(LIBDIR)
++		$(INSTALL) -c -m 644 sample.ktt $(STAGEDIR)$(LIBDIR)
++		$(INSTALL) -c -m 644 yaze.ktt $(STAGEDIR)$(LIBDIR)
++		$(INSTALL) -c -m 644 yaze.1 $(STAGEDIR)$(MANDIR)
++		$(INSTALL) -c -m 644 cdm.1 $(STAGEDIR)$(MANDIR)
++		$(INSTALL) -c -m 644 cpm.1 $(STAGEDIR)$(MANDIR)
++		$(INSTALL) -c -m 644 z80.1 $(STAGEDIR)$(MANDIR)
++		/bin/sh install_disks.sh $(STAGEDIR)$(DSKDIR)
++
++install-doc:
++		/bin/sh install_doc.sh $(STAGEDIR)$(DOCDIR)
++		/bin/sh install_doc_html.sh $(STAGEDIR)$(DOCHTMLDIR)
+ 
+ md5:		$(DISTRIB)
+ 		(P=`pwd`; D=`basename $$P`; \
diff --git a/emulators/yaze-ag/files/patch-yaze.sh b/emulators/yaze-ag/files/patch-yaze.sh
new file mode 100644
index 000000000000..a392f9f55c22
--- /dev/null
+++ b/emulators/yaze-ag/files/patch-yaze.sh
@@ -0,0 +1,31 @@
+--- yaze.sh.orig	2015-04-26 14:15:29 UTC
++++ yaze.sh
+@@ -1,9 +1,10 @@
+ #!/bin/sh
+ 
+-S_YAZEFILES=/usr/local/lib/yaze
+-S_CPMDSKS=/usr/local/lib/yaze/disks
+-S_DOCFILES=/usr/local/lib/yaze/doc
+-S_DOCFILES_html=/usr/local/lib/yaze/doc_html
++S_YAZEEXECDIR=%%LIBEXECDIR%%
++S_YAZEFILES=%%DATADIR%%
++S_CPMDSKS=%%DATADIR%%/disks
++S_DOCFILES=%%DOCSDIR%%
++S_DOCFILES_html=%%DOCSDIR%%/html
+ 
+ if [ ! -f .yazerc ]
+ then
+@@ -80,10 +81,10 @@ fi
+ echo
+ echo pwd=`pwd`
+ 
+-if [ -f yaze_bin ]
++if [ -f $S_YAZEEXECDIR/yaze_bin ]
+ then
+-   echo "starting ./yaze_bin $*"
+-   exec ./yaze_bin $*
++   echo "starting $S_YAZEEXECDIR/yaze_bin $*"
++   exec $S_YAZEEXECDIR/yaze_bin $*
+ else
+    echo "starting yaze_bin $*"
+    exec yaze_bin $*
diff --git a/emulators/yaze-ag/pkg-descr b/emulators/yaze-ag/pkg-descr
new file mode 100644
index 000000000000..df9c45ff1ebb
--- /dev/null
+++ b/emulators/yaze-ag/pkg-descr
@@ -0,0 +1,5 @@
+YAZE-AG is an excellent Z80 emulator, written in ANSI C, that works on many
+Unix architectures. It is fast, emulates undocumented opcodes, and passes
+instruction regression tests against real Z80 hardware.
+
+WWW: http://yaze-ag.de/
diff --git a/emulators/yaze-ag/pkg-plist b/emulators/yaze-ag/pkg-plist
new file mode 100644
index 000000000000..fe82d4a72676
--- /dev/null
+++ b/emulators/yaze-ag/pkg-plist
@@ -0,0 +1,154 @@
+bin/cdm
+bin/cpm
+bin/yaze
+bin/z80
+libexec/yaze_bin
+man/man1/cdm.1.gz
+man/man1/cpm.1.gz
+man/man1/yaze.1.gz
+man/man1/z80.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/00-INDEX.doc
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL-2.20
+%%PORTDOCS%%%%DOCSDIR%%/README-1.10
+%%PORTDOCS%%%%DOCSDIR%%/README-2.20
+%%PORTDOCS%%%%DOCSDIR%%/README_BIOS3_Z80
+%%PORTDOCS%%%%DOCSDIR%%/README_BOOTSYS
+%%PORTDOCS%%%%DOCSDIR%%/html/BOOTSYS.Z80.html
+%%PORTDOCS%%%%DOCSDIR%%/html/How_to_read.txt
+%%PORTDOCS%%%%DOCSDIR%%/html/INSTALL-2.51.0.html
+%%PORTDOCS%%%%DOCSDIR%%/html/README-1.10.html
+%%PORTDOCS%%%%DOCSDIR%%/html/README-2.51.0.html
+%%PORTDOCS%%%%DOCSDIR%%/html/README_BIOS3_Z80.html
+%%PORTDOCS%%%%DOCSDIR%%/html/README_BOOTSYS.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cdm.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/000.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/001.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/002.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/003.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/004.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/005.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/006.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/007.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/008.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/009.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/010.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/011.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/012.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/013.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/014.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/015.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/016.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/017.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/018.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/019.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/020.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/021.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/022.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/023.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/024.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/025.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/026.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/027.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/028.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/029.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/030.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/031.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/032.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/033.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/034.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/035.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/036.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/037.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/038.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/039.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/040.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/041.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/042.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/043.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/044.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/045.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/046.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/047.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/048.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/049.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/050.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/051.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/052.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/053.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/054.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/055.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/056.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/057.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/058.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/059.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/060.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/061.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/062.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/063.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/064.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/065.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/066.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/067.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/068.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/069.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/070.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/071.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/072.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/073.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/074.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/075.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/076.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/077.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/078.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/079.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/080.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/081.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/082.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/083.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/084.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/085.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/086.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/087.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/088.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/089.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/090.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/091.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/092.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/093.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/094.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/095.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/096.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/097.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cpmhelp/index.html
+%%PORTDOCS%%%%DOCSDIR%%/html/e_mail_yaze-ag.png
+%%PORTDOCS%%%%DOCSDIR%%/html/happy.gif
+%%PORTDOCS%%%%DOCSDIR%%/html/index.html
+%%PORTDOCS%%%%DOCSDIR%%/html/mintty.pdf
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze-ag_doc.html
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze-keys.odt
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze-keys.pdf
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze.1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/yaze_doc.html
+%%PORTDOCS%%%%DOCSDIR%%/yaze-ag.doc
+%%PORTDOCS%%%%DOCSDIR%%/yaze.doc
+%%DATADIR%%/disks/BOOT_UTILS.ydsk.gz
+%%DATADIR%%/disks/CPM3_SYS.ydsk.gz
+%%DATADIR%%/disks/bios3.ydsk.gz
+%%DATADIR%%/disks/disksort.tar.gz
+%%DATADIR%%/disks/disksort.ydsk.gz
+%%DATADIR%%/disks/hi-c-z280-compiler.ydsk.gz
+%%DATADIR%%/disks/kermit_szrz.ydsk.gz
+%%DATADIR%%/disks/mmu-utils.ydsk.gz
+%%DATADIR%%/disks/spl.ydsk.gz
+%%DATADIR%%/disks/test-utils-1.10.ydsk.gz
+%%DATADIR%%/disks/testdsk.ydsk.gz
+%%DATADIR%%/disks/turbo-modula-2.ydsk.gz
+%%DATADIR%%/disks/unixlike.ydsk.gz
+%%DATADIR%%/disks/yazerc
+%%DATADIR%%/disks/zinc.ydsk.gz
+%%DATADIR%%/m2.ktt
+%%DATADIR%%/sample.ktt
+%%DATADIR%%/yaze-cpm3.boot
+%%DATADIR%%/yaze.boot
+%%DATADIR%%/yaze.ktt


More information about the dev-commits-ports-all mailing list