diff --git a/comms/pterm/Makefile b/comms/pterm/Makefile new file mode 100644 index 00000000000..4d09c05f1e1 --- /dev/null +++ b/comms/pterm/Makefile @@ -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 + +# 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 diff --git a/comms/pterm/distinfo b/comms/pterm/distinfo new file mode 100644 index 00000000000..a2da8451a0c --- /dev/null +++ b/comms/pterm/distinfo @@ -0,0 +1,2 @@ +SHA256 (pterm-6.0.4.tar.bz2) = 0OJvoCOGx/a51Ja7n3fOTeQJEcdyn/GhaJ0NtVCyuC8= +SIZE (pterm-6.0.4.tar.bz2) = 337689 diff --git a/comms/pterm/patches/patch-FrameCanvas_cpp b/comms/pterm/patches/patch-FrameCanvas_cpp new file mode 100644 index 00000000000..7d235c3966c --- /dev/null +++ b/comms/pterm/patches/patch-FrameCanvas_cpp @@ -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: diff --git a/comms/pterm/patches/patch-getkitver_py b/comms/pterm/patches/patch-getkitver_py new file mode 100644 index 00000000000..af33da7b96a --- /dev/null +++ b/comms/pterm/patches/patch-getkitver_py @@ -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) diff --git a/comms/pterm/patches/patch-types_h b/comms/pterm/patches/patch-types_h new file mode 100644 index 00000000000..e08efef4400 --- /dev/null +++ b/comms/pterm/patches/patch-types_h @@ -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 + #endif + +-#ifdef _POSIX_ASYNCHRONOUS_IO ++#if _POSIX_ASYNCHRONOUS_IO == 1 + #if defined(__APPLE__) + #include + #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; diff --git a/comms/pterm/patches/patch-wxversion_py b/comms/pterm/patches/patch-wxversion_py new file mode 100644 index 00000000000..dec6a1adb4a --- /dev/null +++ b/comms/pterm/patches/patch-wxversion_py @@ -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" diff --git a/comms/pterm/pkg/DESCR b/comms/pterm/pkg/DESCR new file mode 100644 index 00000000000..9c69771a0fb --- /dev/null +++ b/comms/pterm/pkg/DESCR @@ -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. diff --git a/comms/pterm/pkg/MESSAGE b/comms/pterm/pkg/MESSAGE new file mode 100644 index 00000000000..8c62ee7fed1 --- /dev/null +++ b/comms/pterm/pkg/MESSAGE @@ -0,0 +1 @@ +pterm is renamed to platoterm to avoid conflicting with PuTTY. diff --git a/comms/pterm/pkg/PLIST b/comms/pterm/pkg/PLIST new file mode 100644 index 00000000000..c41a577ab34 --- /dev/null +++ b/comms/pterm/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2019/11/09 15:35:26 fcambus Exp $ +@bin bin/platoterm