From 76e94e378cff21914921daf212a51d3b56d29d50 Mon Sep 17 00:00:00 2001 From: fcambus Date: Sat, 3 Sep 2016 10:35:10 +0000 Subject: [PATCH] Import net/cgterm CGTerm is a C/G telnet client that lets you connect to C64 telnet BBSes with the correct colours and the correct font. Also included is a client for 64CHAT called CGChat. OK juanfra@ --- net/cgterm/Makefile | 30 ++++++++++++++++++++++++++++++ net/cgterm/distinfo | 2 ++ net/cgterm/patches/patch-Makefile | 31 +++++++++++++++++++++++++++++++ net/cgterm/pkg/DESCR | 3 +++ net/cgterm/pkg/PLIST | 16 ++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 net/cgterm/Makefile create mode 100644 net/cgterm/distinfo create mode 100644 net/cgterm/patches/patch-Makefile create mode 100644 net/cgterm/pkg/DESCR create mode 100644 net/cgterm/pkg/PLIST diff --git a/net/cgterm/Makefile b/net/cgterm/Makefile new file mode 100644 index 00000000000..23fe45987de --- /dev/null +++ b/net/cgterm/Makefile @@ -0,0 +1,30 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2016/09/03 10:35:10 fcambus Exp $ + +COMMENT = C/G telnet client for C64 BBSes + +DISTNAME = cgterm-1.6 + +CATEGORIES = net + +HOMEPAGE = https://paradroid.automac.se/cgterm/ + +MAINTAINER = Frederic Cambus + +# BSD +PERMIT_PACKAGE_CDROM = Yes + +WANTLIB += SDL c pthread + +MASTER_SITES = ${HOMEPAGE} + +LIB_DEPENDS = devel/sdl + +USE_GMAKE = Yes + +NO_TEST = Yes + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cgterm + ${INSTALL_DATA} ${WRKSRC}/cg*.txt ${PREFIX}/share/doc/cgterm + +.include diff --git a/net/cgterm/distinfo b/net/cgterm/distinfo new file mode 100644 index 00000000000..07afddf1b8f --- /dev/null +++ b/net/cgterm/distinfo @@ -0,0 +1,2 @@ +SHA256 (cgterm-1.6.tar.gz) = IbF6H1F4UXyTW5ltb0ktup/Kaoi7eWT4XM6JE/N5oqE= +SIZE (cgterm-1.6.tar.gz) = 87887 diff --git a/net/cgterm/patches/patch-Makefile b/net/cgterm/patches/patch-Makefile new file mode 100644 index 00000000000..c17e4d92c24 --- /dev/null +++ b/net/cgterm/patches/patch-Makefile @@ -0,0 +1,31 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2016/09/03 10:35:10 fcambus Exp $ +--- Makefile.orig Fri Feb 6 19:11:45 2004 ++++ Makefile Fri Sep 2 12:20:48 2016 +@@ -1,4 +1,4 @@ +-PREFIX=/usr/local ++PREFIX?=/usr/local + EXESUFFIX= + SOCKETLIBS= + +@@ -8,9 +8,9 @@ SOCKETLIBS= + # for solaris: + #SOCKETLIBS = -lsocket -lnsl + +-CC=gcc +-CFLAGS=-O3 -Wall `sdl-config --cflags` -DPREFIX=\"$(PREFIX)\" +-LDFLAGS=`sdl-config --libs` $(SOCKETLIBS) ++CC?=gcc ++CFLAGS+=-Wall `sdl-config --cflags` -DPREFIX=\"$(PREFIX)\" ++LDFLAGS+=`sdl-config --libs` $(SOCKETLIBS) + + + OBJS= \ +@@ -71,7 +71,7 @@ install: all installdirs + # cp cgterm.cfg $(PREFIX)/etc/ + # cp cgchat.cfg $(PREFIX)/etc/ + +-installdirs: $(PREFIX)/bin $(PREFIX)/share $(PREFIX)/share/cgterm $(PREFIX)/etc ++installdirs: $(PREFIX)/bin $(PREFIX)/share $(PREFIX)/share/cgterm + + $(PREFIX)/bin: + mkdir $(PREFIX)/bin > /dev/null 2>&1 diff --git a/net/cgterm/pkg/DESCR b/net/cgterm/pkg/DESCR new file mode 100644 index 00000000000..6aca4546430 --- /dev/null +++ b/net/cgterm/pkg/DESCR @@ -0,0 +1,3 @@ +CGTerm is a C/G telnet client that lets you connect to C64 telnet BBSes +with the correct colours and the correct font. Also included is a client +for 64CHAT called CGChat. diff --git a/net/cgterm/pkg/PLIST b/net/cgterm/pkg/PLIST new file mode 100644 index 00000000000..72c78a839a6 --- /dev/null +++ b/net/cgterm/pkg/PLIST @@ -0,0 +1,16 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2016/09/03 10:35:10 fcambus Exp $ +@bin bin/cgchat +@bin bin/cgterm +share/cgterm/ +share/cgterm/10x12white.bmp +share/cgterm/10x12yellow.bmp +share/cgterm/bell.wav +share/cgterm/german.kbd +share/cgterm/lower.bmp +share/cgterm/swedish.kbd +share/cgterm/upper.bmp +share/cgterm/us.kbd +share/cgterm/windows.kbd +share/doc/cgterm/ +share/doc/cgterm/cgchat.txt +share/doc/cgterm/cgterm.txt