Import comms/pterm.
Pterm is a terminal emulator designed for connecting to PLATO-like systems such as Cyber1 and the Cybis release from Tom Hunter. It also has the ability to run MicroTutor from floppy disk images. PLATO is a multi-user system hosting games, educational material, and communities. A PLATO server is hosted at IRATA.online with guest access and a CYBIS system is hosted at cyber1.org. From Tim Meunier, thanks! OK sthen@
This commit is contained in:
parent
b12beb061b
commit
eb0b6301c6
49
comms/pterm/Makefile
Normal file
49
comms/pterm/Makefile
Normal file
@ -0,0 +1,49 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2019/11/09 15:35:26 fcambus Exp $
|
||||
|
||||
COMMENT = terminal to access the PLATO system
|
||||
|
||||
DISTNAME = pterm-6.0.4
|
||||
|
||||
CATEGORIES = comms x11
|
||||
|
||||
HOMEPAGE = https://cyber1.org
|
||||
|
||||
MAINTAINER = Tim Meunier <trondd@kagu-tsuchi.com>
|
||||
|
||||
# DtCyber (similar to zlib) for pterm
|
||||
# GPLv2+ in 8080 emulator
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB = ${COMPILER_LIBCXX} c m SDL sndfile
|
||||
WANTLIB += wx_baseu-3.0 wx_baseu_net-3.0 wx_baseu_xml-3.0
|
||||
WANTLIB += wx_gtk3u_adv-3.0 wx_gtk3u_core-3.0
|
||||
WANTLIB += wx_gtk3u_html-3.0 wx_gtk3u_qa-3.0 wx_gtk3u_xrc-3.0
|
||||
|
||||
MASTER_SITES = https://cyber1.org/download/linux/
|
||||
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
|
||||
MODULES = lang/python
|
||||
MODPY_RUNDEP = No
|
||||
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
|
||||
CONFIGURE_STYLE = none
|
||||
|
||||
LIB_DEPENDS = audio/libsndfile \
|
||||
devel/sdl \
|
||||
x11/wxWidgets>=3.0.4
|
||||
|
||||
MAKE_FLAGS = CXX="${CXX}" CC="${CC}" OPTIMIZE="${CFLAGS}"
|
||||
|
||||
USE_GMAKE = Yes
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
ALL_TARGET = pterm
|
||||
|
||||
do-install:
|
||||
# Rename to deconflict with net/putty,-gui
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/pterm ${PREFIX}/bin/platoterm
|
||||
|
||||
.include <bsd.port.mk>
|
2
comms/pterm/distinfo
Normal file
2
comms/pterm/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (pterm-6.0.4.tar.bz2) = 0OJvoCOGx/a51Ja7n3fOTeQJEcdyn/GhaJ0NtVCyuC8=
|
||||
SIZE (pterm-6.0.4.tar.bz2) = 337689
|
16
comms/pterm/patches/patch-FrameCanvas_cpp
Normal file
16
comms/pterm/patches/patch-FrameCanvas_cpp
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-FrameCanvas_cpp,v 1.1.1.1 2019/11/09 15:35:26 fcambus Exp $
|
||||
|
||||
Index: FrameCanvas.cpp
|
||||
--- FrameCanvas.cpp.orig
|
||||
+++ FrameCanvas.cpp
|
||||
@@ -7365,8 +7365,8 @@ int PtermFrame::check_pcZ80(void)
|
||||
trace ("R.EXEC");
|
||||
Mz80Waiter(RESIDENTMSEC);
|
||||
m_giveupz80 = true;
|
||||
- //SaveRestoreColors (save, micro);
|
||||
- //SaveRestoreColors (restore, host);
|
||||
+ SaveRestoreColors (save, micro);
|
||||
+ SaveRestoreColors (restore, host);
|
||||
return 1;
|
||||
|
||||
case R_GJOB:
|
18
comms/pterm/patches/patch-getkitver_py
Normal file
18
comms/pterm/patches/patch-getkitver_py
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-getkitver_py,v 1.1.1.1 2019/11/09 15:35:26 fcambus Exp $
|
||||
|
||||
Index: getkitver.py
|
||||
--- getkitver.py.orig
|
||||
+++ getkitver.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
@@ -12,5 +12,5 @@ for l in f:
|
||||
nums2 = [ ]
|
||||
for n in nums:
|
||||
nums2.append (int (n))
|
||||
- print "%d.%d.%d" % tuple (nums2)[:3]
|
||||
+ print("%d.%d.%d" % tuple (nums2)[:3])
|
||||
sys.exit (0)
|
23
comms/pterm/patches/patch-types_h
Normal file
23
comms/pterm/patches/patch-types_h
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-types_h,v 1.1.1.1 2019/11/09 15:35:26 fcambus Exp $
|
||||
|
||||
Index: types.h
|
||||
--- types.h.orig
|
||||
+++ types.h
|
||||
@@ -40,7 +40,7 @@ typedef HANDLE pthread_t;
|
||||
#include <semaphore.h>
|
||||
#endif
|
||||
|
||||
-#ifdef _POSIX_ASYNCHRONOUS_IO
|
||||
+#if _POSIX_ASYNCHRONOUS_IO == 1
|
||||
#if defined(__APPLE__)
|
||||
#include <sys/aio.h>
|
||||
#else
|
||||
@@ -330,7 +330,7 @@ typedef struct NetPortSet_s
|
||||
|
||||
typedef struct
|
||||
{
|
||||
-#ifdef _POSIX_ASYNCHRONOUS_IO
|
||||
+#if _POSIX_ASYNCHRONOUS_IO == 1
|
||||
struct aiocb iocb;
|
||||
#endif
|
||||
off_t pos;
|
22
comms/pterm/patches/patch-wxversion_py
Normal file
22
comms/pterm/patches/patch-wxversion_py
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-wxversion_py,v 1.1.1.1 2019/11/09 15:35:26 fcambus Exp $
|
||||
|
||||
Index: wxversion.py
|
||||
--- wxversion.py.orig
|
||||
+++ wxversion.py
|
||||
@@ -39,15 +39,7 @@ if sys.platform[:3] == "win":
|
||||
else:
|
||||
wxversion = shellstr ("wx-config", "--version")
|
||||
|
||||
-svnversion = shellstr ("svn", "info", "PtermApp.cpp")
|
||||
-if svnversion:
|
||||
- m = re.search (r"Revision: (\d+)", svnversion)
|
||||
- if m:
|
||||
- svnversion = m.group (1)
|
||||
- if shellstr ("svn", "status", "pterm_wx.cpp"):
|
||||
- svnversion += "+"
|
||||
- else:
|
||||
- svnversion = ""
|
||||
+svnversion = ""
|
||||
now = time.strftime ("%d %B %Y").lstrip ("0")
|
||||
|
||||
new = """#define WXVERSION "%s"
|
7
comms/pterm/pkg/DESCR
Normal file
7
comms/pterm/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
Pterm is a terminal emulator designed for connecting to PLATO-like
|
||||
systems such as Cyber1 and the Cybis release from Tom Hunter. It also
|
||||
has the ability to run MicroTutor from floppy disk images.
|
||||
|
||||
PLATO is a multi-user system hosting games, educational material, and
|
||||
communities. A PLATO server is hosted at IRATA.online with guest access
|
||||
and a CYBIS system is hosted at cyber1.org.
|
1
comms/pterm/pkg/MESSAGE
Normal file
1
comms/pterm/pkg/MESSAGE
Normal file
@ -0,0 +1 @@
|
||||
pterm is renamed to platoterm to avoid conflicting with PuTTY.
|
2
comms/pterm/pkg/PLIST
Normal file
2
comms/pterm/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/11/09 15:35:26 fcambus Exp $
|
||||
@bin bin/platoterm
|
Loading…
Reference in New Issue
Block a user