From nobody Tue Dec 14 21:36:34 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CA65418E585A; Tue, 14 Dec 2021 21:36:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDBXL3BQ8z3nV1; Tue, 14 Dec 2021 21:36:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 424961030A; Tue, 14 Dec 2021 21:36:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BELaYG6083495; Tue, 14 Dec 2021 21:36:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BELaY4C083494; Tue, 14 Dec 2021 21:36:34 GMT (envelope-from git) Date: Tue, 14 Dec 2021 21:36:34 GMT Message-Id: <202112142136.1BELaY4C083494@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Juraj Lutter Subject: git: 473265be54c0 - main - emulators/vt100: Add port: Simulation of VT100 terminal hardware List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: otis X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 473265be54c095c939b912db50527ee4627d38ff Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639517794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mODr6WBuQZHcV8vjlW8F4+z+ts9N9zVH/ruwZfqGQQc=; b=VwMMUDmglsZdETZI8ix7ydY/7GXfEyoMUrYvI/Xhg2atLJGYLlOsMTUkMAbiHq41eY8pD/ hkBAfPm/rGLNdhSz7NnVJuPbd4aAFRpBIBIvHPN0R+MAFkhsgy2W4iDRUt9PqfiaD8croz e2CntmtDtyZ49+IP1uzmdPyrJqKzJTDNSieTfvt1DOinBsdkYaBM9skatDOKCluxoGq5Ap Zqy91mWW3dXvYJJku7dhWazCG55Fs7ne85RP8AtCa4bf+/2ZkDSEWLflgygxmH/GYGb5At Zsv0urg8SseNwW6Vefgo5+BvQ4n5PeQDjbDVT6UB0VdTC82KtiOcxR+1UBJoMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639517794; a=rsa-sha256; cv=none; b=JfFfB/NMYk20qKzTw3fL7lh4V+ZEQV3USHcNXNEOkfnk4h1lQWdeXJuu/b2UKliuYtF92T 8OruWfwsBjzwP0IG1hz+loCNCrHTh7QJL1Gmk4IEd96y58St78mgwg5XXyuGr5zJzQDWyy /3T8RjZd/S7ZUK9jUu/IXNPwIkpWzHw5zvBATKE0e8EzbStTmlcBrSeeQ7+cuAKx6p3Rtt MATHfXGrvPlx86bx/Z8g345vHE9al6MWC0NyE/2o7olSLd4rsJuOlQRJH7r4IDJeNsSLzs ylqVvvxe1ntSOqcH8rHCgjPxol+z3PCcF2tnOYszd1MHzmfWqk0YmbmI8D2lbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by otis: URL: https://cgit.FreeBSD.org/ports/commit/?id=473265be54c095c939b912db50527ee4627d38ff commit 473265be54c095c939b912db50527ee4627d38ff Author: Robert Clausecker AuthorDate: 2021-12-14 21:33:41 +0000 Commit: Juraj Lutter CommitDate: 2021-12-14 21:33:41 +0000 emulators/vt100: Add port: Simulation of VT100 terminal hardware This emulator emulates the internal circuitry and processor of the VT100 for a very realistic user experience. It is slightly patched to work smoothly on FreeBSD. Some additional quality of life patches have been added in discussion with upstream and will be added to a future release. This is a software simulation of the VT100 hardware. The original firmware ROM is built in and executed by an 8080 emulator. Other components include video display with character generator ROM, settings NVRAM, Intel 8251 USART, and a keyboard matrix scanner. The Advance Video Option is not included. WWW: https://github.com/larsbrinkhoff/terminal-simulator PR: 259956 --- emulators/Makefile | 1 + emulators/vt100/Makefile | 32 ++++++++++++++++++++++++++++++++ emulators/vt100/distinfo | 3 +++ emulators/vt100/files/patch-main.c | 9 +++++++++ emulators/vt100/files/patch-pty.c | 9 +++++++++ emulators/vt100/pkg-descr | 7 +++++++ 6 files changed, 61 insertions(+) diff --git a/emulators/Makefile b/emulators/Makefile index 87f32bf6aaf0..ec606176fa43 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -155,6 +155,7 @@ SUBDIR += vmips SUBDIR += vmsbackup SUBDIR += vmw + SUBDIR += vt100 SUBDIR += vxtools SUBDIR += wine SUBDIR += wine-devel diff --git a/emulators/vt100/Makefile b/emulators/vt100/Makefile new file mode 100644 index 000000000000..f790f502a8a5 --- /dev/null +++ b/emulators/vt100/Makefile @@ -0,0 +1,32 @@ +PORTNAME= vt100 +DISTVERSION= 0.2 +CATEGORIES= emulators + +MAINTAINER= fuz@fuz.su +COMMENT= Simulation of VT100 terminal hardware + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC:H}/LICENSE + +USES= gl gmake sdl +USE_GITHUB= yes +GH_ACCOUNT= larsbrinkhoff +GH_PROJECT= terminal-simulator +USE_GL= gl +USE_SDL= image2 +CFLAGS+= -DSHADERDIR='\"${DATADIR}/\"' +WRKSRC_SUBDIR= vt100 + +PLIST_FILES= bin/vt100 +PORTDATA= crt.shader vertex.shader + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/vt100 ${STAGEDIR}${PREFIX}/bin/ + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/crt.shader ${STAGEDIR}${DATADIR}/ + ${INSTALL_DATA} ${WRKSRC}/vertex.shader ${STAGEDIR}${DATADIR}/ + +do-test: + cd ${WRKSRC:H} && ${SH} test/test.sh + +.include diff --git a/emulators/vt100/distinfo b/emulators/vt100/distinfo new file mode 100644 index 000000000000..95a64b435a9c --- /dev/null +++ b/emulators/vt100/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1638624778 +SHA256 (larsbrinkhoff-terminal-simulator-0.2_GH0.tar.gz) = c03df1d2a4493ef7dd866e329ecb27b8016051bd2173e3405304a2de444b4e49 +SIZE (larsbrinkhoff-terminal-simulator-0.2_GH0.tar.gz) = 72930468 diff --git a/emulators/vt100/files/patch-main.c b/emulators/vt100/files/patch-main.c new file mode 100644 index 000000000000..955854f1c37e --- /dev/null +++ b/emulators/vt100/files/patch-main.c @@ -0,0 +1,9 @@ +--- main.c.orig 2021-11-20 13:13:34 UTC ++++ main.c +@@ -1,6 +1,5 @@ + #include "vt100.h" + #include "xsdl.h" +-#define _XOPEN_SOURCE 600 + #include + #include + #include diff --git a/emulators/vt100/files/patch-pty.c b/emulators/vt100/files/patch-pty.c new file mode 100644 index 000000000000..206fab4e9d01 --- /dev/null +++ b/emulators/vt100/files/patch-pty.c @@ -0,0 +1,9 @@ +--- pty.c.orig 2021-12-05 10:19:53 UTC ++++ pty.c +@@ -1,6 +1,3 @@ +-#define _XOPEN_SOURCE 600 +-#define _DEFAULT_SOURCE +-#define _DARWIN_C_SOURCE + #include + #include + #include diff --git a/emulators/vt100/pkg-descr b/emulators/vt100/pkg-descr new file mode 100644 index 000000000000..1a8912ace98e --- /dev/null +++ b/emulators/vt100/pkg-descr @@ -0,0 +1,7 @@ +This is a software simulation of the VT100 hardware. The original +firmware ROM is built in and executed by an 8080 emulator. Other +components include video display with character generator ROM, settings +NVRAM, Intel 8251 USART, and a keyboard matrix scanner. The Advance +Video Option is not included. + +WWW: https://github.com/larsbrinkhoff/terminal-simulator