diff --git a/emulators/Makefile b/emulators/Makefile index 87f32bf6aaf0..ec606176fa43 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -1,183 +1,184 @@ COMMENT = Emulators for other operating systems SUBDIR += adamem SUBDIR += almostti SUBDIR += anese SUBDIR += aqemu SUBDIR += aranym SUBDIR += atari800 SUBDIR += bfe SUBDIR += bochs SUBDIR += bsvc SUBDIR += cannonball SUBDIR += cemu SUBDIR += cingb SUBDIR += citra SUBDIR += citra-qt5 SUBDIR += cpmemu SUBDIR += cpmtools SUBDIR += cpmtools2 SUBDIR += darcnes SUBDIR += dgen-sdl SUBDIR += dolphin-emu SUBDIR += dosbox SUBDIR += dosbox-staging SUBDIR += dynamips-community SUBDIR += edumips64 SUBDIR += elliott-803 SUBDIR += emu64 SUBDIR += emulationstation SUBDIR += fmsx SUBDIR += frodo SUBDIR += fs-uae SUBDIR += fs-uae-launcher SUBDIR += fuse SUBDIR += fuse-roms SUBDIR += fuse-utils SUBDIR += gbe SUBDIR += gens SUBDIR += gngb SUBDIR += gngeo SUBDIR += gxemul SUBDIR += hatari SUBDIR += hercules SUBDIR += higan SUBDIR += hugo SUBDIR += hv_kvp_cmd SUBDIR += ines SUBDIR += javatari SUBDIR += joytran SUBDIR += jzintv SUBDIR += kcemu SUBDIR += klh10 SUBDIR += lib765 SUBDIR += libc6-shim SUBDIR += libdsk SUBDIR += libretro-ppsspp SUBDIR += libretro-vice SUBDIR += libspectrum SUBDIR += linux-c7 SUBDIR += linux-power10-functional-sim SUBDIR += linux-power9-functional-sim SUBDIR += linux_base-c7 SUBDIR += lisaem SUBDIR += magia SUBDIR += mame SUBDIR += mastergear SUBDIR += mednafen SUBDIR += mesen SUBDIR += mess SUBDIR += mgba SUBDIR += mtools SUBDIR += mupen64plus SUBDIR += mupen64plus-audio-sdl SUBDIR += mupen64plus-core SUBDIR += mupen64plus-input-sdl SUBDIR += mupen64plus-plugins SUBDIR += mupen64plus-qt SUBDIR += mupen64plus-rsp-cxd4 SUBDIR += mupen64plus-rsp-hle SUBDIR += mupen64plus-rsp-z64 SUBDIR += mupen64plus-ui-console SUBDIR += mupen64plus-video-arachnoid SUBDIR += mupen64plus-video-glide64 SUBDIR += mupen64plus-video-glide64mk2 SUBDIR += mupen64plus-video-rice SUBDIR += mupen64plus-video-z64 SUBDIR += nemu SUBDIR += nestopia SUBDIR += o2em SUBDIR += ods2reader SUBDIR += open-vm-tools SUBDIR += openmsx SUBDIR += p5-Acme-6502 SUBDIR += parallels-tools SUBDIR += pcem SUBDIR += pcemu SUBDIR += pcsxr SUBDIR += ppsspp SUBDIR += ppsspp-qt5 SUBDIR += py-gns3-converter SUBDIR += py-unicorn SUBDIR += qemu SUBDIR += qemu-cheri SUBDIR += qemu-devel SUBDIR += qemu-guest-agent SUBDIR += qemu-powernv SUBDIR += qemu-user-static SUBDIR += qemu-user-static-devel SUBDIR += qemu-utils SUBDIR += qemu42 SUBDIR += qemu5 SUBDIR += qmc2 SUBDIR += quasi88 SUBDIR += riscv-isa-sim SUBDIR += rpcs3 SUBDIR += rtc SUBDIR += rubygem-fission SUBDIR += sameboy SUBDIR += simh SUBDIR += simh-hp2100 SUBDIR += simh-hp3000 SUBDIR += simh-hpdoc SUBDIR += skyeye SUBDIR += snes9x-gtk SUBDIR += spim SUBDIR += stella SUBDIR += stonx SUBDIR += teo SUBDIR += tiemu3 SUBDIR += tilem SUBDIR += tme SUBDIR += tnylpo SUBDIR += tpm-emulator SUBDIR += tuxnes SUBDIR += uae SUBDIR += ucon64 SUBDIR += ukncbtl SUBDIR += unicorn SUBDIR += vba SUBDIR += vboxtool SUBDIR += vgb-bin SUBDIR += vgba-bin SUBDIR += vice SUBDIR += virtualbox-ose SUBDIR += virtualbox-ose-additions SUBDIR += virtualbox-ose-additions-legacy SUBDIR += virtualbox-ose-additions-nox11 SUBDIR += virtualbox-ose-additions-nox11-legacy SUBDIR += virtualbox-ose-kmod SUBDIR += virtualbox-ose-kmod-legacy SUBDIR += virtualbox-ose-legacy SUBDIR += virtualbox-ose-nox11 SUBDIR += virtualbox-ose-nox11-legacy SUBDIR += visualboyadvance-m SUBDIR += vmips SUBDIR += vmsbackup SUBDIR += vmw + SUBDIR += vt100 SUBDIR += vxtools SUBDIR += wine SUBDIR += wine-devel SUBDIR += wine-gecko SUBDIR += wine-gecko-devel SUBDIR += wine-mono SUBDIR += wine-mono-devel SUBDIR += wine-proton SUBDIR += winetricks SUBDIR += x16-emulator SUBDIR += x16-rom SUBDIR += x48 SUBDIR += x49gp SUBDIR += xbraitenberg SUBDIR += xcpc SUBDIR += xen-kernel SUBDIR += xhomer SUBDIR += xsystem35 SUBDIR += xzx SUBDIR += yaze-ag SUBDIR += yuzu SUBDIR += yuzu-qt5 SUBDIR += z80pack SUBDIR += zsnes .include 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