diff --git a/net/tintin++/Makefile b/net/tintin++/Makefile new file mode 100644 index 00000000000..d6324cfe3a7 --- /dev/null +++ b/net/tintin++/Makefile @@ -0,0 +1,21 @@ +# OpenBSD makefile for: tintin++ +# Version required: 1.5pl6 +# Date created: 17 Nov 1997 +# Whom: ejovi +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/11/18 04:05:09 joey Exp $ +# Id: Makefile,v 1.7 1996/11/18 11:36:43 asami Exp $ +# + +DISTNAME= tintin++v1.5pl6 +PKGNAME= tintin-1.5.6 +CATEGORIES= net games +MASTER_SITES= ftp://princeton.edu/pub/tintin++/dist/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= joey@OpenBSD.ORG + +WRKSRC= ${WRKDIR}/tintin++/src +GNU_CONFIGURE= yes + +.include diff --git a/net/tintin++/files/md5 b/net/tintin++/files/md5 new file mode 100644 index 00000000000..cf025569825 --- /dev/null +++ b/net/tintin++/files/md5 @@ -0,0 +1 @@ +MD5 (tintin++v1.5pl6.tar.Z) = 35e53d661606d035c3e92a249e44160f diff --git a/net/tintin++/patches/patch-aa b/net/tintin++/patches/patch-aa new file mode 100644 index 00000000000..76295f0429c --- /dev/null +++ b/net/tintin++/patches/patch-aa @@ -0,0 +1,160 @@ +*** Makefile.in.orig Fri Sep 9 19:35:20 1994 +--- Makefile.in Tue Nov 15 02:07:48 1994 +*************** +*** 10,17 **** + # try uncommenting the 'gcc' line and commenting the 'cc' one. + # Tintin++ doesn't *need* an ANSI compiler anymore, but gcc + # is still better than cc on many platforms... +! CC = @CC@ -O +! CFLAGS = @DEFS@ + LIBS = @LIBS@ + PIPE = @PIPE@ + # If you plan on doing debugging (with gdb), it is very helpful to turn all +--- 10,16 ---- + # try uncommenting the 'gcc' line and commenting the 'cc' one. + # Tintin++ doesn't *need* an ANSI compiler anymore, but gcc + # is still better than cc on many platforms... +! CFLAGS += @DEFS@ + LIBS = @LIBS@ + PIPE = @PIPE@ + # If you plan on doing debugging (with gdb), it is very helpful to turn all +*************** +*** 22,31 **** + + # BINDIR is the directory you wish tt++ to be placed if you wish to use + # make install. +! BINDIR = .. + + # DEFAULT_FILE_DIR is the path to tintin files. +! DEFAULT_FILE_DIR = @HOME@ + + ######################################### + # You shouldn't need to change anything # +--- 21,30 ---- + + # BINDIR is the directory you wish tt++ to be placed if you wish to use + # make install. +! BINDIR = /usr/local/bin + + # DEFAULT_FILE_DIR is the path to tintin files. +! DEFAULT_FILE_DIR = /usr/local/lib/tintin + + ######################################### + # You shouldn't need to change anything # +*************** +*** 41,54 **** + variables.c highlight.c antisub.c ivars.c help.c text.c glob.c + OFILES = $(CFILES:.c=.o) + +! all: tintin++ install + + tintin++: $(OFILES) tintin.h + @echo "Linking..." + $(CC) $(CFLAGS) $(FFLAGS) $(LFLAGS) -o tt++ $(OFILES) $(LIBS) + +! install: all +! @./install.sh $(BINDIR) $(DEFAULT_FILE_DIR) $(COMPRESSED_HELP) + + # Autocompile all .c files into .o files using this rule: + .c.o: +--- 40,54 ---- + variables.c highlight.c antisub.c ivars.c help.c text.c glob.c + OFILES = $(CFILES:.c=.o) + +! all: tintin++ + + tintin++: $(OFILES) tintin.h + @echo "Linking..." + $(CC) $(CFLAGS) $(FFLAGS) $(LFLAGS) -o tt++ $(OFILES) $(LIBS) + +! install: +! @mkdir -p $(DEFAULT_FILE_DIR) +! @./install.sh $(BINDIR) $(DEFAULT_FILE_DIR) Ok + + # Autocompile all .c files into .o files using this rule: + .c.o: +*** configure.old Sun Aug 28 14:06:38 1994 +--- configure Tue Nov 15 01:42:46 1994 +*************** +*** 474,489 **** + OLD_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -pipe" + +! echo "Do you want the helpfile to be compressed (yes/no)? " +! read YESNO +! if test $YESNO; then +! if echo "$YESNO"|grep -i "no" >/dev/null; then +! DEFS="$DEFS -DCOMPRESSED_HELP=0" +! else +! DEFS="$DEFS -DCOMPRESSED_HELP=1" +! COMPRESSED_HELP="Ok" +! fi +! fi + + test -n "$silent" || echo "checking for -pipe" + cat > conftest.${ac_ext} </dev/null; then +! # DEFS="$DEFS -DCOMPRESSED_HELP=0" +! # else +! # DEFS="$DEFS -DCOMPRESSED_HELP=1" +! # COMPRESSED_HELP="Ok" +! # fi +! #fi + + test -n "$silent" || echo "checking for -pipe" + cat > conftest.${ac_ext} < "$2"/.tt_help.txt +--- 5,15 ---- + + echo " " + echo "Copying the tintin++ executable to \"$1\"..." +! install -c -s -o bin -g bin -m 555 tt++ "$1" + + echo "Copying the tintin++ help file to \"$2\"..." + if [ "$3" ]; then +! install -c -o bin -g bin -m 444 support/.tt_help.txt.Z "$2" + else + echo Uncompressing. + uncompress -c support/.tt_help.txt.Z | cat > "$2"/.tt_help.txt diff --git a/net/tintin++/patches/patch-ab b/net/tintin++/patches/patch-ab new file mode 100644 index 00000000000..c6a4eb4d7ee --- /dev/null +++ b/net/tintin++/patches/patch-ab @@ -0,0 +1,175 @@ +*** utils.c.old Sun Aug 28 18:12:16 1994 +--- utils.c Tue Nov 15 01:58:20 1994 +*************** +*** 21,26 **** +--- 21,28 ---- + #include + #endif + ++ #include ++ + void syserr(); + + /*********************************************/ +*************** +*** 56,62 **** +--- 58,66 ---- + char *msg; + { + extern int errno, sys_nerr; ++ #if !defined(BSD) || (BSD < 199306) + extern char *sys_errlist[]; ++ #endif + + fprintf(stderr,"ERROR: %s (%d",msg, errno); + if(errno>0 && errno ", 3); + else { + sprintf(strng,"8> 7[%d;%df", input_row, input_col); +! write(1,strng, strlen(strng)+1); + display_col+=2; + } + } +--- 670,679 ---- + if(ses && !PSEUDO_PROMPT) + write_line_mud("", ses); + else if (!is_split) +! write(1,"> ", 2); + else { + sprintf(strng,"8> 7[%d;%df", input_row, input_col); +! write(1,strng, strlen(strng)); + display_col+=2; + } + } +*** misc.c.bak Sun Aug 28 18:12:08 1994 +--- misc.c Tue Nov 15 02:28:26 1994 +*************** +*** 106,112 **** + char temp[2]; + temp[0]=7; + temp[1]=0; +! write(1, temp, 2); + } + + +--- 106,112 ---- + char temp[2]; + temp[0]=7; + temp[1]=0; +! write(1, temp, 1); + } + + +*************** +*** 172,178 **** + cleanup_session(sesptr); + ses=NULL; + if (is_split) +! write(1, "c", 3); + tintin_puts2("TINTIN suffers from bloodlack, and the lack of a beating heart...", ses); + tintin_puts2("TINTIN is dead! R.I.P.", ses); + tintin_puts2("Your blood freezes as you hear TINTIN's death cry.", ses); +--- 172,178 ---- + cleanup_session(sesptr); + ses=NULL; + if (is_split) +! write(1, "c", 2); + tintin_puts2("TINTIN suffers from bloodlack, and the lack of a beating heart...", ses); + tintin_puts2("TINTIN is dead! R.I.P.", ses); + tintin_puts2("Your blood freezes as you hear TINTIN's death cry.", ses); +*** main.c.bak Sun Aug 28 18:12:06 1994 +--- main.c Tue Nov 15 02:33:37 1994 +*************** +*** 562,568 **** + if(ses->logfile) { + if (!OLD_LOG) { + count=0; +! for(n=0;n<=didget;n++) + if (buffer[n]!='\r') { + temp[count]=buffer[n]; + count++; +--- 562,568 ---- + if(ses->logfile) { + if (!OLD_LOG) { + count=0; +! for(n=0;n