head	1.2;
access;
symbols
	pkgsrc-2026Q2:1.2.0.2
	pkgsrc-2026Q2-base:1.2
	pkgsrc-2026Q1:1.1.0.6
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.4
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.2
	pkgsrc-2025Q3-base:1.1;
locks; strict;
comment	@# @;


1.2
date	2026.05.01.19.52.47;	author hauke;	state Exp;
branches;
next	1.1;
commitid	mhJPJzTPjW9Jg9EG;

1.1
date	2025.07.04.16.30.11;	author hauke;	state Exp;
branches;
next	;
commitid	DD6KGSoUeHyyPr1G;


desc
@@


1.2
log
@emulators/ntvcm: Update to 20260329 HEAD

Minor changes
Make package version number regular
@
text
@# $NetBSD: Makefile,v 1.1 2025/07/04 16:30:11 hauke Exp $

DISTNAME=	ntvcm
PKGNAME=	ntvcm-0.0.20260329
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_GITHUB:=davidly/}
GITHUB_PROJECT=	ntvcm
GITHUB_TAG=	5f3897b6239836ade2d1089664874c52e117c0ac	# 2026-03-29

MAINTAINER=	hauke@@NetBSD.org
HOMEPAGE=	https://github.com/davidly/ntvcm?tab=readme-ov-file\#readme
COMMENT=	Run i8080/Z80 .COM binaries in CP/M 2.2 emulation
LICENSE=	cc0-1.0-universal

USE_LANGUAGES=	c++

WRKSRC=		${WRKDIR}/${DISTNAME}-${GITHUB_TAG}

USE_TOOLS=	gmake
MAKE_FILE=	makefile

DOCDIR=		share/doc/ntvcm

INSTALLATION_DIRS+=	bin ${PKGMANDIR}/man1 ${DOCDIR}

do-install:
	${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/${DOCDIR}
	${INSTALL_MAN} ${FILESDIR}/ntvcm.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_PROGRAM} ${WRKSRC}/ntvcm ${DESTDIR}${PREFIX}/bin/ntvcm

do-test:
	cd ${WRKSRC}/tests && ../ntvcm -8 8080EX1.COM
	cd ${WRKSRC}/tests && ../ntvcm -8 8080EXER.COM
	cd ${WRKSRC}/tests && ../ntvcm -8 8080PRE.COM
	cd ${WRKSRC}/tests && ../ntvcm -8 CPUTEST.COM
	cd ${WRKSRC}/tests && ../ntvcm -8 TEST.COM
	cd ${WRKSRC}/tests && ../ntvcm -8 TST8080.COM
	cd ${WRKSRC}/tests && ../ntvcm TST8080.COM
	cd ${WRKSRC} && ./ntvcm z80test/zexdoc.com
	cd ${WRKSRC} && ./ntvcm z80test/zexall.com

.include "../../mk/bsd.pkg.mk"
@


1.1
log
@ntvcm is a tool to run i8080/Z80 .COM binaries in CP/M 2.2 emulation.

Console input/output works for both BIOS and BDOS APIs.

Disk input/output works via the BDOS API. There is no attempt at
emulating physical disks. Applications that use BDOS for disk I/O will
work, but applications that use the BIOS, or assume things about disk
layout, will not.

For example, assuming CP/M 2.2's asm.com and load.com are in the
current directory, this will assemble test.asm and generate test.com
on Windows, Linux, or MacOS:

% ntvcm asm test
& ntvcm load test
@
text
@d1 1
a1 1
# $NetBSD$
d4 1
a4 1
PKGNAME=	ntvcm-20250704
d8 1
a8 1
GITHUB_TAG=	1ef7d7f7d6a2a80ea177e11543dc8def773fe0bc	# 2025-07-04
@

