pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

drawterm: import 9front's drawterm as wip/drawterm.



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Sat Jun 25 17:32:58 2022 +0200
Changeset:	178a6bb6f819773e229d6665fe3b39fa8fb920d5

Added Files:
	drawterm/DESCR
	drawterm/Makefile
	drawterm/PLIST
	drawterm/distinfo

Log Message:
drawterm: import 9front's drawterm as wip/drawterm.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=178a6bb6f819773e229d6665fe3b39fa8fb920d5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 drawterm/DESCR    | 11 +++++++
 drawterm/Makefile | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drawterm/PLIST    |  3 ++
 drawterm/distinfo |  5 ++++
 4 files changed, 107 insertions(+)

diffs:
diff --git a/drawterm/DESCR b/drawterm/DESCR
new file mode 100644
index 0000000000..e035c60318
--- /dev/null
+++ b/drawterm/DESCR
@@ -0,0 +1,11 @@
+Drawterm  is a program that users of non-Plan 9 systems can use to
+establish graphical cpu(1) connections with Plan 9 CPU servers.  Just as
+a real Plan 9 terminal does, drawterm serves its local name space as
+well as some devices (the keyboard, mouse, and screen) to a remote CPU
+server, which mounts this name space on /mnt/term and starts a shell.
+Typically, either explicitly or via the profile, one uses the shell to
+start rio(1).
+
+This is a fork of Russ Cox's drawterm to incorporate features from
+Plan9front (http://9front.org), most importantly DP9IK authentication
+support (see authsrv(6)) and the TLS based rcpu(1) protocol.
diff --git a/drawterm/Makefile b/drawterm/Makefile
new file mode 100644
index 0000000000..69a4eb7a58
--- /dev/null
+++ b/drawterm/Makefile
@@ -0,0 +1,88 @@
+# $NetBSD$
+
+DISTNAME=	snap
+BUILD=		20220603
+PKGNAME=	drawterm-${BUILD}
+CATEGORIES=	x11 plan9
+DIST_SUBDIR=	${PKGNAME_NOREV}-${BUILD}
+MASTER_SITES=	https://git.9front.org/git/plan9front/drawterm/bee4db6507fdf31bddfa98d26a673e135dfd28ad/
+
+MAINTAINER=	vms%retrobsd.ddns.net@localhost
+HOMEPAGE=	https://drawterm.9front.org/
+COMMENT=	Utility to connect to Plan9 CPU servers
+LICENSE=	mit
+
+USE_LANGUAGES=	c c99
+
+MAKEFLAGS+=	X11=${X11BASE} CFLAGS=${CFLAGS:Q} LDFLAGS=${LDFLAGS:Q}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${PKGSRC_COMPILER:Mgcc}
+MAKEFLAGS+=	CFLAGS+="-Wall -Wno-missing-braces -ggdb \
+		-I${WRKSRC} -I${WRKSRC}/include -I${WRKSRC}/kern \
+		-c -I${X11}/include -D_THREAD_SAFE ${PTHREAD} -O2"
+MAKEFLAGS+=	LDFLAGS+="${PTHREAD} -lpthread"
+.else
+MAKEFLAGS+=	CFLAGS+="-I{WRKSRC} -I${WRKSRC}/include -I${WRKSRC}/kern"
+MAKEFLAGS+=	CFLAGS+="-g -c -I${X11}/include -D_THREAD_SAFE -O2"
+MAKEFLAGS+=	LDFLAGS="-lpthread"
+.endif
+
+.if ${OPSYS:M*BSD}
+MAKEFLAGS+=		CONF=${LOWER_OPSYS}
+.  if ${OPSYS} == OpenBSD
+MAKEFLAGS+=		CC?=cc
+.  elif ${OPSYS} == FreeBSD
+MAKEFLAGS+=		CC?=clang
+.  endif
+
+.elif ${OPSYS} == "Linux"
+.include "../../audio/alsa-lib/buildlink3.mk"
+MAKEFLAGS+=	CONF=unix AUDIO=alsa
+MAKEFLAGS+= LDADD="-L${X11}/lib64 -L${X11}/lib -lX11 -ggdb -lm -lasound"
+
+.elif ${OPSYS} == "Darwin"
+MAKEFLAGS+=	CONF=osx-x11 CC?=clang PTHREAD=''
+MAKEFLAGS+=	LDADD="-L${X11}/lib -lX11 -ggdb"
+
+# Developer Studio also runs on Oracle Linux
+.elif !empty(PKGSRC_COMPILER:Msunpro)
+MAKEFLAGS+=	CONF=sun
+
+.elif ${OPSYS} == "SunOS"
+SUBST_CLASSES+=		paths
+SUBST_STAGE.paths=	pre-configure
+SUBST_FILES.paths+=	Make.unix
+SUBST_SED.paths=	-e 's,i.86/386,i86pc/amd64,'
+
+.  if ${OPSYS} == "SunOS" && empty(PKGSRC_COMPILER:Msunpro)
+MAKEFLAGS+=	CONF=unix AUDIO=none
+MAKEFLAGS+=	LDADD="-L${X11}/lib/64 -L${X11}/lib -lX11 -lX11 -lrt \
+		-lpthread -lsocket -lnsl"
+.  endif
+
+.elif ${OPSYS} == "IRIX" && !empty(PKGSRC_COMPILER:Mmipspro*)
+MAKEFLAGS+=	CONF=irix CFLAGS+=-DIRIX
+
+.else
+.  if !exists(/dev/dsp*)
+MAKEFLAGS+=	CONF=unix CC?=gcc
+.  else
+MAKEFLAGS+=	CONF=unix CC?=gcc AUDIO=unix
+.  endif
+.endif
+
+INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1
+
+WRKSRC=	${WRKDIR}/drawterm
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/drawterm ${DESTDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/drawterm.1 								\
+	${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/oss.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/drawterm/PLIST b/drawterm/PLIST
new file mode 100644
index 0000000000..117bb15de8
--- /dev/null
+++ b/drawterm/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/drawterm
+man/man1/drawterm.1
diff --git a/drawterm/distinfo b/drawterm/distinfo
new file mode 100644
index 0000000000..08245ff539
--- /dev/null
+++ b/drawterm/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (drawterm-20220603-20220603/snap.tar.gz) = 22416509dfe89320a1119b5a539c8f66828cfabccd9fa70e0cacd961d1c7aaf9
+SHA512 (drawterm-20220603-20220603/snap.tar.gz) = 89db21fff1459bb74b65b57a9b7f418bc0df6c00b8c6a1bcc448e58436c637b87c8f50191960d5c185f5f074d5bc7e803388afefbdc0f16446a3cece3a78181f
+Size (drawterm-20220603-20220603/snap.tar.gz) = 606935 bytes


Home | Main Index | Thread Index | Old Index