diff --git a/devel/zmac/Makefile b/devel/zmac/Makefile new file mode 100644 index 00000000000..c7b0f1e3148 --- /dev/null +++ b/devel/zmac/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2020/07/03 15:24:22 bcallah Exp $ + +COMMENT = Z-80 macro cross assembler +DISTNAME = zmac-20200607 +CATEGORIES = devel + +HOMEPAGE = http://48k.ca/zmac.html +MAINTAINER = Brian Callahan + +# Public Domain +PERMIT_PACKAGE = Yes + +WANTLIB += ${COMPILER_LIBCXX} c m + +MASTER_SITES = https://mirrors.nycbug.org/pub/distfiles/ + +COMPILER = base-clang ports-gcc + +ALL_TARGET = zmac + +NO_TEST = Yes + +# No install routine. +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/zmac ${PREFIX}/bin + +.include diff --git a/devel/zmac/distinfo b/devel/zmac/distinfo new file mode 100644 index 00000000000..0f945d69cfa --- /dev/null +++ b/devel/zmac/distinfo @@ -0,0 +1,2 @@ +SHA256 (zmac-20200607.tar.gz) = AXl7cpZZEvrOH5MO7jfVCyB/PjIOMkaqx1LjLk47GXk= +SIZE (zmac-20200607.tar.gz) = 177599 diff --git a/devel/zmac/pkg/DESCR b/devel/zmac/pkg/DESCR new file mode 100644 index 00000000000..97d0416aa79 --- /dev/null +++ b/devel/zmac/pkg/DESCR @@ -0,0 +1,12 @@ +zmac is a Z-80 macro cross-assembler. It has all the features you'd +expect. It assembles the specified input file (with a '.z' extension if +there is no pre-existing extension and the file as given doesn't exist) +and produces program output in many different formats. It also produces +a nicely-formatted listing of the machine code and cycle counts +alongside the source in a ".lst" file. + +Undocumented Z-80 instructions are supported as well as 8080 code. + +zmac strives to be a powerful assembler with expressions familiar to C +programmers while providing good backward compatibility with original +assemblers such as Edtasm, MRAS and Macro-80. diff --git a/devel/zmac/pkg/PLIST b/devel/zmac/pkg/PLIST new file mode 100644 index 00000000000..10b6c758ed8 --- /dev/null +++ b/devel/zmac/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2020/07/03 15:24:22 bcallah Exp $ +@bin bin/zmac