diff options
author | agc <agc@pkgsrc.org> | 1997-10-09 14:30:56 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1997-10-09 14:30:56 +0000 |
commit | 5a738ca9d8968d3de0c39083b8a8a5a76cd01b02 (patch) | |
tree | db232209ea22925d7f406bcc3a7b5e7457bffa83 /plan9/9term | |
parent | d842fc40ac63031ed503242a8f7d04368f208721 (diff) | |
download | pkgsrc-5a738ca9d8968d3de0c39083b8a8a5a76cd01b02.tar.gz |
Initial import of FreeBSD plan9 ports category into the NetBSD package
system.
Diffstat (limited to 'plan9/9term')
-rw-r--r-- | plan9/9term/Makefile | 21 | ||||
-rw-r--r-- | plan9/9term/files/md5 | 1 | ||||
-rw-r--r-- | plan9/9term/patches/patch-aa | 45 | ||||
-rw-r--r-- | plan9/9term/patches/patch-ab | 415 | ||||
-rw-r--r-- | plan9/9term/patches/patch-ac | 15 | ||||
-rw-r--r-- | plan9/9term/pkg/COMMENT | 1 | ||||
-rw-r--r-- | plan9/9term/pkg/DESCR | 10 | ||||
-rw-r--r-- | plan9/9term/pkg/PLIST | 2 |
8 files changed, 510 insertions, 0 deletions
diff --git a/plan9/9term/Makefile b/plan9/9term/Makefile new file mode 100644 index 00000000000..a97cbf033d9 --- /dev/null +++ b/plan9/9term/Makefile @@ -0,0 +1,21 @@ +# New ports collection makefile for: 9term +# Version required: 1.6.3 +# Date created: Sun Aug 13 12:36:14 CDT 1995 +# Whom: erich@rrnet.com +# +# FreeBSD Id: Makefile,v 1.5 1996/12/07 23:43:56 asami Exp +# + +DISTNAME= 9term.1.6.3 +PKGNAME= 9term-1.6.3 +CATEGORIES= plan9 +MASTER_SITES= ftp://ftp.ecf.toronto.edu/pub/plan9/matty/ + +MAINTAINER= erich@FreeBSD.org + +# needs library and private header, but not during runtime +BUILD_DEPENDS= /always_build_it:${PORTSDIR}/plan9/sam + +NO_WRKSUBDIR= yes + +.include <bsd.port.mk> diff --git a/plan9/9term/files/md5 b/plan9/9term/files/md5 new file mode 100644 index 00000000000..0739005a976 --- /dev/null +++ b/plan9/9term/files/md5 @@ -0,0 +1 @@ +MD5 (9term.1.6.3.tar.gz) = 064a4428aba417a7793d3252423faf0b diff --git a/plan9/9term/patches/patch-aa b/plan9/9term/patches/patch-aa new file mode 100644 index 00000000000..a587c0a88d1 --- /dev/null +++ b/plan9/9term/patches/patch-aa @@ -0,0 +1,45 @@ +*** libtext/Makefile.orig Wed Jun 1 21:01:19 1994 +--- libtext/Makefile Mon Jul 31 11:34:06 1995 +*************** +*** 5,18 **** + # + # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified + # if your compiler supports posix-compatible compilation +! OS=-DSOLARIS + + # add -Iincludedir for any include directories that need to be searched + # for posix header files +! INCS=-I. -I../include + + # add name of library orderer - use ":" if none exists +! RANLIB=: + + # add name of library + AR=ar +--- 5,19 ---- + # + # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified + # if your compiler supports posix-compatible compilation +! OS=-DSUNOS -O2 +! SAMDIR=../../../sam/work + + # add -Iincludedir for any include directories that need to be searched + # for posix header files +! INCS=-I. -I$(SAMDIR)/include + + # add name of library orderer - use ":" if none exists +! RANLIB=ranlib + + # add name of library + AR=ar +*************** +*** 38,41 **** + + install: $(LIB) + +! $(OBJ): ../include/u.h ../include/libc.h ../include/libg.h ../include/frame.h ../include/text.h +--- 39,42 ---- + + install: $(LIB) + +! $(OBJ): $(SAMDIR)/include/u.h $(SAMDIR)/include/libc.h $(SAMDIR)/include/libg.h $(SAMDIR)/include/frame.h text.h diff --git a/plan9/9term/patches/patch-ab b/plan9/9term/patches/patch-ab new file mode 100644 index 00000000000..8efa67b7cc4 --- /dev/null +++ b/plan9/9term/patches/patch-ab @@ -0,0 +1,415 @@ +*** 9term/9term.c.orig Fri Jun 3 03:35:39 1994 +--- 9term/9term.c Mon Jul 31 15:56:10 1995 +*************** +*** 10,16 **** +--- 10,20 ---- + #include <frame.h> + #include <text.h> + ++ #ifdef __FreeBSD__ ++ #include <sys/termios.h> ++ #else + #include <sys/termio.h> ++ #endif + #include <signal.h> + #include <sys/stat.h> + +*************** +*** 153,161 **** + } + } + +! setenv("TERM", "9term", 1); + /* Cope with BSD-oid systems. - cks */ +! setenv("TERMCAP", "9term: :am:bl=^G:do=^J:nl=^J:", 1); + signal(SIGINT, SIG_IGN); + + init_display(&argc, argv, cmd, resource); +--- 157,165 ---- + } + } + +! O_setenv("TERM", "9term", 1); + /* Cope with BSD-oid systems. - cks */ +! O_setenv("TERMCAP", "9term: :am:bl=^G:do=^J:nl=^J:", 1); + signal(SIGINT, SIG_IGN); + + init_display(&argc, argv, cmd, resource); +*************** +*** 718,724 **** + texthighlight(t, t->length, t->length, F&~D); + #ifdef REMOTE + flushstream(); +! killpg(r == quitchar ? SIGQUIT : SIGINT); + #else + sendrunes(&r, 1); + #endif +--- 722,728 ---- + texthighlight(t, t->length, t->length, F&~D); + #ifdef REMOTE + flushstream(); +! O_killpg(r == quitchar ? SIGQUIT : SIGINT); + #else + sendrunes(&r, 1); + #endif +*************** +*** 804,810 **** + * export a name-value pair to environment + */ + int +! setenv(char *name, char *value, int overwrite) + { + char *p; + +--- 808,814 ---- + * export a name-value pair to environment + */ + int +! O_setenv(char *name, char *value, int overwrite) + { + char *p; + +*** 9term/9term.h.orig Thu Dec 15 08:49:15 1994 +--- 9term/9term.h Mon Jul 31 15:56:10 1995 +*************** +*** 31,37 **** + extern int isig; + + extern void specialchars(int); +! extern int setenv(char *, char *, int); + extern void init_display(int *, char **, char**, char*); + #ifdef NEEDVARARG + extern void error(); +--- 31,37 ---- + extern int isig; + + extern void specialchars(int); +! extern int O_setenv(char *, char *, int); + extern void init_display(int *, char **, char**, char*); + #ifdef NEEDVARARG + extern void error(); +*************** +*** 65,70 **** +--- 65,75 ---- + #endif + + #ifdef SUNOS ++ #define POSIXPTYS ++ #define BSDPTYS ++ #endif ++ ++ #ifdef __FreeBSD__ + #define POSIXPTYS + #define BSDPTYS + #endif +*** 9term/Makefile.orig Sun Mar 13 22:50:54 1994 +--- 9term/Makefile Mon Jul 31 16:02:02 1995 +*************** +*** 11,37 **** + # Define RISCOS for Mips RISC/os + # Define BSDPTYS for BSD-style pty support + # Define POSIXPTYS for POSIX ptys +- OS=-DSOLARIS + +! # where we'll install it +! BINDIR=/usr/pgrad/matty/bin/$(cputype) + + HEADERFILE=9term.h + TARGET=9term +! INCLUDES=-I. -I../include -I/usr/openwin/include +! CFLAGS=-g $(OS) $(INCLUDES) -fno-builtin -D_LIBXG_EXTENSION +! LDFLAGS=-g -R/usr/openwin/lib -L/usr/openwin/lib -R/usr/ucblib -L/usr/ucblib + CC=gcc + + # change this if your X11 libraries are in different places + # or if you need extra libraries to load with X11 applications +! LIBS=../libtext/libtext.a ../libframe/libframe.a ../libXg/libXg.a +! XLIBS=-lXt -lX11 + + OBJECTS=9term.o command.o display.o pty.o + + $(TARGET): $(OBJECTS) +! $(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(XLIBS) -lm -lucb + + wloc: wloc.o + $(CC) $(LDFLAGS) -o wloc wloc.o $(LIBS) $(XLIBS) -lm +--- 11,39 ---- + # Define RISCOS for Mips RISC/os + # Define BSDPTYS for BSD-style pty support + # Define POSIXPTYS for POSIX ptys + +! OS= -D_LIBXG_EXTENSION -DSUNOS +! +! SAMPATH=../../../sam/work +! +! BINDIR=. # where we'll install it + + HEADERFILE=9term.h + TARGET=9term +! INCLUDES=-I. -I../libtext -I$(SAMPATH)/include -I/usr/X11R6/include +! CFLAGS= -O2 $(OS) $(INCLUDES) +! LDFLAGS= + CC=gcc + + # change this if your X11 libraries are in different places + # or if you need extra libraries to load with X11 applications +! LIBS=../libtext/libtext.a $(SAMPATH)/libframe/libframe.a $(SAMPATH)/libXg/libXg.a +! XLIBS= -L/usr/X11R6/lib -lXt -lX11 + + OBJECTS=9term.o command.o display.o pty.o + + $(TARGET): $(OBJECTS) +! $(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(XLIBS) -lm + + wloc: wloc.o + $(CC) $(LDFLAGS) -o wloc wloc.o $(LIBS) $(XLIBS) -lm +*************** +*** 39,59 **** + label: wloc + ln wloc label + +- unicode: unicode.o +- $(CC) $(LDFLAGS) -o unicode unicode.o $(LIBS) $(XLIBS) -lm +- + install: $(TARGET) wloc label + cp $(TARGET) $(BINDIR) + chown root $(BINDIR)/$(TARGET) + chmod 04755 $(BINDIR)/$(TARGET) + mv wloc $(BINDIR) + mv label $(BINDIR) +- mv unicode $(BINDIR) + + clean: + rm -f *.o core + + nuke: clean +! rm -f $(TARGET) wloc label unicode + + $(OBJECTS): 9term.h +--- 41,57 ---- + label: wloc + ln wloc label + + install: $(TARGET) wloc label + cp $(TARGET) $(BINDIR) + chown root $(BINDIR)/$(TARGET) + chmod 04755 $(BINDIR)/$(TARGET) + mv wloc $(BINDIR) + mv label $(BINDIR) + + clean: + rm -f *.o core + + nuke: clean +! rm -f $(TARGET) wloc label + + $(OBJECTS): 9term.h +*** 9term/command.c.orig Sun Mar 6 19:50:51 1994 +--- 9term/command.c Mon Jul 31 15:56:11 1995 +*************** +*** 13,19 **** +--- 13,23 ---- + #include <sys/wait.h> + #include <signal.h> + #include <grp.h> ++ #ifdef __FreeBSD__ ++ #include <termios.h> ++ #else + #include <termio.h> ++ #endif + #ifdef SOLARIS + #include <sys/stropts.h> + #endif +*************** +*** 204,210 **** + */ + + void +! killpg(int sig) + { + if (comm_pid) + kill(-comm_pid, sig); +--- 208,214 ---- + */ + + void +! O_killpg(int sig) + { + if (comm_pid) + kill(-comm_pid, sig); +*** 9term/display.c.orig Thu Dec 15 08:48:28 1994 +--- 9term/display.c Mon Jul 31 15:56:11 1995 +*************** +*** 114,120 **** + delwin(Widget w, XEvent *event, String *params, Cardinal *n) + { + if (w == _toplevel) +! killpg(SIGHUP); + } + + /* +--- 114,120 ---- + delwin(Widget w, XEvent *event, String *params, Cardinal *n) + { + if (w == _toplevel) +! O_killpg(SIGHUP); + } + + /* +*************** +*** 185,191 **** + else if (!strcasecmp(s, "plan9")) + kbdmode = PLAN9; + if (s = get_resource(resource, class, "p9font", "P9font")) +! setenv("font", s, 1); + if (s = get_resource(resource, class, "highwater", "Highwater")) + highwater = atoi(s); + if (s = get_resource(resource, class, "lowwater", "Lowwater")) +--- 185,191 ---- + else if (!strcasecmp(s, "plan9")) + kbdmode = PLAN9; + if (s = get_resource(resource, class, "p9font", "P9font")) +! O_setenv("font", s, 1); + if (s = get_resource(resource, class, "highwater", "Highwater")) + highwater = atoi(s); + if (s = get_resource(resource, class, "lowwater", "Lowwater")) +*************** +*** 230,236 **** + #endif + /* export window id to environment */ + sprintf(id, "%d", XtWindow(_toplevel)); +! setenv("WINDOWID", id, 1); + + /* register mouse and keyboard events */ + einit(Ekeyboard | Emouse); +--- 230,236 ---- + #endif + /* export window id to environment */ + sprintf(id, "%d", XtWindow(_toplevel)); +! O_setenv("WINDOWID", id, 1); + + /* register mouse and keyboard events */ + einit(Ekeyboard | Emouse); +*** 9term/pty.c.orig Fri Jul 22 10:47:29 1994 +--- 9term/pty.c Mon Jul 31 16:03:07 1995 +*************** +*** 12,18 **** + + #include <utmp.h> + #include <errno.h> +! #ifdef SUNOS + # undef _POSIX_SOURCE + # include <sys/termio.h> + # include <stropts.h> +--- 12,27 ---- + + #include <utmp.h> + #include <errno.h> +! +! #ifdef __FreeBSD__ +! # include <termios.h> +! +! /* # include <stropts.h> */ +! /* Isn't POSIX and portability so much fun? */ +! # define VRPRNT VREPRINT +! #endif +! +! #if defined(SUNOS) && !defined(__FreeBSD__) + # undef _POSIX_SOURCE + # include <sys/termio.h> + # include <stropts.h> +*************** +*** 41,47 **** + # define VEOL2 _VEOL2 + #endif + +! #ifdef RISCOS + # include <sys/stat.h> + # include </usr/include/ctype.h> /* to defeat posix version */ + # define VLNEXT V_LNEXT +--- 50,56 ---- + # define VEOL2 _VEOL2 + #endif + +! #ifdef RISCOS + # include <sys/stat.h> + # include </usr/include/ctype.h> /* to defeat posix version */ + # define VLNEXT V_LNEXT +*************** +*** 49,58 **** + # define VRPRNT V_RPRNT + # define VWERASE V_WERAS + #else + # include <ctype.h> + #endif + +! #ifdef OSF1 + # define V_START VSTART + # define V_STOP VSTOP + # define V_SUSP VSUSP +--- 58,69 ---- + # define VRPRNT V_RPRNT + # define VWERASE V_WERAS + #else ++ #ifndef __FreeBSD__ + # include <ctype.h> + #endif ++ #endif + +! #if defined(OSF1) + # define V_START VSTART + # define V_STOP VSTOP + # define V_SUSP VSUSP +*************** +*** 115,121 **** + char udef, p9def; + }; + +! #if defined(SUNOS) || defined(IRIX) || defined(SOLARIS) + # define V_START VSTART + # define V_STOP VSTOP + # define V_SUSP VSUSP +--- 126,132 ---- + char udef, p9def; + }; + +! #if defined(SUNOS) || defined(IRIX) || defined(SOLARIS) || defined(__FreeBSD__) + # define V_START VSTART + # define V_STOP VSTOP + # define V_SUSP VSUSP +*************** +*** 139,145 **** + #ifndef _POSIX_SOURCE + { "eol2", 4, VEOL2, 0, 0 }, + #endif +! #if !defined(_OSF_SOURCE) && !defined(_POSIX_SOURCE) + { "swtch", 5, VSWTCH, 0, 0 }, + #endif + { "start", 5, V_START, ctrl('q'), ctrl('q') }, +--- 150,156 ---- + #ifndef _POSIX_SOURCE + { "eol2", 4, VEOL2, 0, 0 }, + #endif +! #if !defined(_OSF_SOURCE) && !defined(_POSIX_SOURCE) && !defined(__FreeBSD__) + { "swtch", 5, VSWTCH, 0, 0 }, + #endif + { "start", 5, V_START, ctrl('q'), ctrl('q') }, +*************** +*** 292,301 **** +--- 303,318 ---- + /* Insure some sanity. */ + ttmode.c_lflag |= ECHO; + ttmode.c_oflag &= ~(ONLCR); ++ #ifndef __FreeBSD__ + ttmode.c_oflag |= ONLRET; ++ #endif + } else { + ttmode.c_iflag = BRKINT | IGNPAR | ICRNL | IXON; ++ #ifdef __FreeBSD__ ++ ttmode.c_oflag = OPOST; ++ #else + ttmode.c_oflag = OPOST | ONLRET; ++ #endif + ttmode.c_cflag = B9600 | PARENB | CS8 | CREAD; + ttmode.c_lflag = ISIG | ICANON | ECHO | ECHOK; + #ifdef __ultrix diff --git a/plan9/9term/patches/patch-ac b/plan9/9term/patches/patch-ac new file mode 100644 index 00000000000..8bd3e6269f4 --- /dev/null +++ b/plan9/9term/patches/patch-ac @@ -0,0 +1,15 @@ +*** Makefile.orig Fri Aug 11 15:57:26 1995 +--- Makefile Fri Aug 11 16:04:30 1995 +*************** +*** 0 **** +--- 1,10 ---- ++ ++ MAN=man ++ all: ++ (cd libtext; make) ++ (cd 9term; make) ++ install: ++ $(INSTALL) -c 9term/9term $(PREFIX)/bin/ ++ $(INSTALL) -c 9term/9term.1 $(PREFIX)/$(MAN)/man1/ ++ strip $(PREFIX)/bin/9term ++ gzip -9nf $(PREFIX)/man/man1/9term.1 diff --git a/plan9/9term/pkg/COMMENT b/plan9/9term/pkg/COMMENT new file mode 100644 index 00000000000..156bd06d62d --- /dev/null +++ b/plan9/9term/pkg/COMMENT @@ -0,0 +1 @@ +An X11 program which emulates a plan9 window. diff --git a/plan9/9term/pkg/DESCR b/plan9/9term/pkg/DESCR new file mode 100644 index 00000000000..118271b454f --- /dev/null +++ b/plan9/9term/pkg/DESCR @@ -0,0 +1,10 @@ +9term is a terminal emulator which emulates an 8 1/2 window. +this version supports unicode. To see this support, cat one of +the utf files in an 8 1/2 window. Your Xserver must be able to +find the required fonts, and the `*p9font' x-resource must be +set to point to the fonts, maybe `/usr/X11R6/lib/X11/fonts/Xg/unicode.9.font'. + +This port needs work, it is functional enough to get the feel +for 9term, but some of the features don't work with FreeBSD. + +eric. diff --git a/plan9/9term/pkg/PLIST b/plan9/9term/pkg/PLIST new file mode 100644 index 00000000000..c05b3d50650 --- /dev/null +++ b/plan9/9term/pkg/PLIST @@ -0,0 +1,2 @@ +bin/9term +man/man1/9term.1.gz |