WANTLIB has been updated to reflect pcre dependency.
Source files are modified as follows:
Makefile.in: include ${LOCALBASE}/include
parse.c: initialize ptoo (this patch submitted upstream)
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/tintin++/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- Makefile 10 Dec 2013 23:42:29 -0000 1.18
+++ Makefile 2 Jan 2014 04:17:26 -0000
@@ -2,28 +2,29 @@
COMMENT= client program to help playing muds
-DISTNAME= tintin++v1.5pl6
-PKGNAME= tintin-1.5.6
-REVISION= 1
+DISTNAME= tintin-2.00.9
+PKGNAME= tintin-2.00.9
+REVISION= 0
CATEGORIES= net games
-MASTER_SITES= http://ftp.kiae.su/pub/unix/games/
-EXTRACT_SUFX= .tar.Z
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tintin/}
-# Public Domain
+# GPLv2
PERMIT_PACKAGE_CDROM= Yes
-WANTLIB += c
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_STYLE= gnu old
+LIB_DEPENDS= devel/pcre
-WRKDIST= ${WRKDIR}/tintin++/src
+WANTLIB += pcre
+CONFIGURE_STYLE= gnu
+
+WRKDIST= ${WRKDIR}/tt/src
NO_TEST= Yes
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/lib/tintin
${INSTALL_PROGRAM} ${WRKSRC}/tt++ ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/support/.tt_help.txt.Z ${PREFIX}/lib/tintin
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/tintin++/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo 5 Apr 2007 16:20:16 -0000 1.3
+++ distinfo 2 Jan 2014 04:17:26 -0000
@@ -1,5 +1,2 @@
-MD5 (tintin++v1.5pl6.tar.Z) = NeU9ZhYG0DXD6SoknkQWDw==
-RMD160 (tintin++v1.5pl6.tar.Z) = iyDVrnwyTOt4Gj5eXeWKvld/Cks=
-SHA1 (tintin++v1.5pl6.tar.Z) = aybfgVFdRTk6aMoOW9FxKHu3ezQ=
-SHA256 (tintin++v1.5pl6.tar.Z) = mpU9NhEUm+g0/IEmXjwTJNhdy9r8ZsbvuEDa+o8zSi8=
-SIZE (tintin++v1.5pl6.tar.Z) = 176477
+SHA256 (tintin-2.00.9.tar.gz) = yv7um2DeOdlX3vV4L7T4yymgWvadyW0+WAfC0/tUEnU=
+SIZE (tintin-2.00.9.tar.gz) = 276024
Index: patches/patch-Makefile_in
===================================================================
RCS file: /cvs/ports/net/tintin++/patches/patch-Makefile_in,v
retrieving revision 1.1
diff -u -p -r1.1 patch-Makefile_in
--- patches/patch-Makefile_in 26 Oct 2007 22:10:06 -0000 1.1
+++ patches/patch-Makefile_in 2 Jan 2014 04:17:26 -0000
@@ -1,45 +1,11 @@
-$OpenBSD: patch-Makefile_in,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- Makefile.in.orig Fri Sep 9 17:35:20 1994
-+++ Makefile.in Sat Oct 27 00:05:07 2007
-@@ -10,8 +10,7 @@
- # 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@
-+CFLAGS += @DEFS@
- LIBS = @LIBS@
- PIPE = @PIPE@
- # If you plan on doing debugging (with gdb), it is very helpful to turn all
-@@ -22,10 +21,10 @@ PIPE = @PIPE@
+--- Makefile.in.orig Wed Jan 1 19:17:57 2014
++++ Makefile.in Wed Jan 1 19:18:44 2014
+@@ -35,7 +35,7 @@
- # BINDIR is the directory you wish tt++ to be placed if you wish to use
- # make install.
--BINDIR = ..
-+BINDIR = /usr/local/bin
+ LDFLAGS = @LDFLAGS@
- # DEFAULT_FILE_DIR is the path to tintin files.
--DEFAULT_FILE_DIR = @HOME@
-+DEFAULT_FILE_DIR = /usr/local/lib/tintin
+-INCS = @MYINCLUDE@
++INCS += -I${LOCALBASE}/include @MYINCLUDE@
- #########################################
- # You shouldn't need to change anything #
-@@ -41,14 +40,15 @@ CFILES = main.c parse.c action.c alias.c substitute.c
- variables.c highlight.c antisub.c ivars.c help.c text.c glob.c
- OFILES = $(CFILES:.c=.o)
+ LIBS = @MYLIB@ @LIBS@
--all: tintin++ install
-+all: tintin++
-
- tintin++: $(OFILES) tintin.h
- @echo "Linking..."
- $(CC) $(CFLAGS) $(FFLAGS) $(LFLAGS) -o tt++ $(OFILES) $(LIBS)
-
--install: all
-- @./install.sh $(BINDIR) $(DEFAULT_FILE_DIR) $(COMPRESSED_HELP)
-+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:
Index: patches/patch-configure
===================================================================
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- patches/patch-configure 7 Dec 2013 22:37:14 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,69 +0,0 @@
-$OpenBSD: patch-configure,v 1.2 2013/12/07 22:37:14 jca Exp $
---- configure.orig Sun Aug 28 12:06:38 1994
-+++ configure Fri Dec 6 15:14:46 2013
-@@ -474,17 +474,20 @@ fi
- 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
-+DEFS="$DEFS -DCOMPRESSED_HELP=1"
-+COMPRESSED_HELP="Ok"
-
-+#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} <<EOF
- #include "confdefs.h"
-@@ -754,7 +757,7 @@ else
- fi
-
-
--for ac_hdr in strings.h string.h stdlib.h time.h sys/termio.h
-+for ac_hdr in strings.h string.h stdlib.h time.h sys/termio.h termios.h
- do
- ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
- test -n "$silent" || echo "checking for ${ac_hdr}"
-@@ -790,6 +793,16 @@ if egrep "tcflag_t" conftest.out >/dev/null 2>&1; then
- fi
- rm -f conftest*
-
-+echo '#include "confdefs.h"
-+#include <termios.h>' > conftest.${ac_ext}
-+eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
-+if egrep "tcflag_t" conftest.out >/dev/null 2>&1; then
-+ rm -rf conftest*
-+ DEFS="$DEFS -DHAVE_TCFLAG_T=1"
-+
-+fi
-+rm -f conftest*
-+
- test -n "$silent" || echo "checking for which method to use to turn keyboard echo
on/off"
- cat > conftest.${ac_ext} <<EOF
- #include "confdefs.h"
-@@ -854,7 +867,7 @@ else
- :;
- fi
-
--for ac_func in bcopy
-+for ac_func in
- do
- ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
- test -n "$silent" || echo "checking for ${ac_func}"
Index: patches/patch-echo_c
===================================================================
RCS file: patches/patch-echo_c
diff -N patches/patch-echo_c
--- patches/patch-echo_c 7 Dec 2013 22:37:14 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,94 +0,0 @@
-$OpenBSD: patch-echo_c,v 1.1 2013/12/07 22:37:14 jca Exp $
---- echo.c.orig Sun Aug 28 16:11:56 1994
-+++ echo.c Fri Dec 6 17:04:16 2013
-@@ -18,19 +18,27 @@
- #include <sys/ioctl.h>
- #endif
-
-+#if defined(HAVE_TERMIOS_H)
-+#include <termios.h>
-+#else
- #if defined(HAVE_SYS_TERMIO_H) && !defined(BSD_ECHO)
- #include <sys/termio.h>
-+#define termios termio
-+#define tcgetattr(a, b) ioctl((a), TCGETA, (b))
-+#define tcsetattr(a, XXX, b) ioctl((a), TCSETA, (b))
- #else
- #include <sgtty.h>
- #if DIRTY_REDEFINE
-+/* ... */
- #undef TIOCGETP
- #undef TIOCSETP
- #define TIOCGETP 0x40067408
- #define TIOCSETP 0x80067409
- #endif
- #endif
-+#endif
-
--#if defined(HAVE_SYS_TERMIO_H) && !defined(BSD_ECHO)
-+#if defined(HAVE_TERMIOS_H) || (defined(HAVE_SYS_TERMIO_H) &&
!defined(BSD_ECHO))
- #ifdef HAVE_TCFLAG_T
- extern tcflag_t c_lflag;
- extern cc_t c_cc[NCCS];
-@@ -41,46 +49,46 @@ extern unsigned char c_cc[NCC];
-
- void init_echo()
- {
-- struct termio io;
-+ struct termios io;
-
-- if(ioctl(0, TCGETA, &io)<0)
-- syserr("ioctl");
-+ if(tcgetattr(0, &io)<0)
-+ syserr("tcgetattr/ioctl");
- c_lflag = io.c_lflag;
- c_cc[VMIN] = io.c_cc[VMIN];
- c_cc[VTIME] = io.c_cc[VTIME];
- }
-
- /********************************/
--/* turn echo on - HP-UX version */
-+/* turn echo on - POSIX version */
- /********************************/
- void term_echo()
- {
-- struct termio io;
-+ struct termios io;
-
-- if(ioctl(0, TCGETA, &io)<0)
-- syserr("ioctl");
-+ if(tcgetattr(0, &io)<0)
-+ syserr("tcgetattr/ioctl");
- io.c_lflag = c_lflag;
- io.c_cc[VMIN] = c_cc[VMIN];
- io.c_cc[VTIME] = c_cc[VTIME];
-- if(ioctl(0, TCSETA, &io)<0)
-- syserr("ioctl");
-+ if(tcsetattr(0, TCSANOW, &io)<0)
-+ syserr("tcsetattr/ioctl");
- }
-
- /*********************************/
--/* turn echo off - HP-UX version */
-+/* turn echo off - POSIX version */
- /*********************************/
- void term_noecho()
- {
-- struct termio io;
-+ struct termios io;
-
-- if(ioctl(0, TCGETA, &io)<0)
-- syserr("ioctl");
-+ if(tcgetattr(0, &io)<0)
-+ syserr("tcgetattr/ioctl");
- io.c_lflag &= ~ECHO;
- io.c_lflag &= ~ICANON;
- io.c_cc[VMIN]=1;
- io.c_cc[VTIME]=0;
-- if(ioctl(0, TCSETA, &io) < 0)
-- syserr("ioctl");
-+ if(tcsetattr(0, TCSANOW, &io) < 0)
-+ syserr("tcsetattr/ioctl");
- }
-
- #else /* BSD-ISH machine */
Index: patches/patch-files_c
===================================================================
RCS file: patches/patch-files_c
diff -N patches/patch-files_c
--- patches/patch-files_c 11 Jan 2010 07:19:17 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-$OpenBSD: patch-files_c,v 1.1 2010/01/11 07:19:17 ajacoutot Exp $
---- files.c.orig Mon Jan 11 03:22:56 2010
-+++ files.c Mon Jan 11 03:23:09 2010
-@@ -13,6 +13,7 @@
- #include <strings.h>
- #endif
- #endif
-+#include <stdlib.h>
- #include "tintin.h"
-
- struct listnode *common_aliases, *common_actions, *common_subs,
Index: patches/patch-install_sh
===================================================================
RCS file: patches/patch-install_sh
diff -N patches/patch-install_sh
--- patches/patch-install_sh 26 Oct 2007 22:10:06 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-$OpenBSD: patch-install_sh,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- install.sh.orig Fri Sep 9 03:43:26 1994
-+++ install.sh Sat Oct 27 00:05:07 2007
-@@ -5,12 +5,11 @@
-
- echo " "
- echo "Copying the tintin++ executable to \"$1\"..."
--strip tt++
--cp tt++ "$1"
-+install -c -s -o bin -g bin -m 555 tt++ "$1"
-
- echo "Copying the tintin++ help file to \"$2\"..."
- if [ "$3" ]; then
-- cp support/.tt_help.txt.Z "$2/"
-+ 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
Index: patches/patch-main_c
===================================================================
RCS file: patches/patch-main_c
diff -N patches/patch-main_c
--- patches/patch-main_c 7 Dec 2013 22:37:14 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,53 +0,0 @@
-$OpenBSD: patch-main_c,v 1.2 2013/12/07 22:37:14 jca Exp $
---- main.c.orig Sun Aug 28 16:12:06 1994
-+++ main.c Fri Dec 6 15:10:34 2013
-@@ -100,8 +100,12 @@ int write();
- extern void term_echo();
-
- int last_line_length;
--#if defined(HAVE_SYS_TERMIO_H) && !defined(BSD_ECHO)
-+#if defined(HAVE_TERMIOS_H) || (defined(HAVE_SYS_TERMIO_H) &&
!defined(BSD_ECHO))
-+#ifdef HAVE_TERMIOS_H
-+#include <termios.h>
-+#else
- #include <sys/termio.h>
-+#endif
- #ifdef HAVE_TCFLAG_T
- tcflag_t c_lflag;
- cc_t c_cc[NCCS];
-@@ -562,7 +566,7 @@ void read_mud(ses)
- if(ses->logfile) {
- if (!OLD_LOG) {
- count=0;
-- for(n=0;n<=didget;n++)
-+ for(n=0;n<didget;n++)
- if (buffer[n]!='\r') {
- temp[count]=buffer[n];
- count++;
-@@ -732,7 +736,7 @@ void tintin_puts2(cptr, ses)
- sprintf(strng,"%c8%s\n\r%c7%c[%d;%df", E, cptr, E, E, input_row,
input_col);
- else
- sprintf(strng,"%s\n\r", cptr);
-- write(1,strng, strlen(strng)+1);
-+ write(1,strng, strlen(strng));
- display_col=1;
- if (redraw && term_echoing && !is_split)
- write(1, k_input, strlen(k_input));
-@@ -764,7 +768,7 @@ void tintin_puts3(cptr, ses)
- cptr++;
- sprintf(strng,"%s\n\r", cptr);
- }
-- write(1,strng, strlen(strng)+1);
-+ write(1,strng, strlen(strng));
- display_col=1;
- }
- text_came=TRUE;
-@@ -832,7 +836,7 @@ void split_command(arg)
- input_col=1;
- sprintf(fn, "%c[2J%c[1;%dr%c[%d;1f", E, E, display_row, E, split_line);
- write(1,fn, strlen(fn));
--
write(1,"-------------------------------------------------------------------------------",
80);
-+
write(1,"--------------------------------------------------------------------------------",
80);
- sprintf(fn, "%c[%d;1f%c7", E, split_line-1, E);
- write(1,fn,strlen(fn));
- sprintf(fn, "%c[%d;1f", E, input_row);
Index: patches/patch-misc_c
===================================================================
RCS file: patches/patch-misc_c
diff -N patches/patch-misc_c
--- patches/patch-misc_c 11 Jan 2010 07:19:17 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
-$OpenBSD: patch-misc_c,v 1.2 2010/01/11 07:19:17 ajacoutot Exp $
---- misc.c.orig Sun Aug 28 16:12:08 1994
-+++ misc.c Mon Jan 11 08:15:04 2010
-@@ -106,7 +106,7 @@ void bell_command(ses)
- char temp[2];
- temp[0]=7;
- temp[1]=0;
-- write(1, temp, 2);
-+ write(1, temp, 1);
- }
-
-
-@@ -172,7 +172,7 @@ void end_command(command, ses)
- cleanup_session(sesptr);
- ses=NULL;
- if (is_split)
-- write(1, "c", 3);
-+ 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);
Index: patches/patch-net_c
===================================================================
RCS file: patches/patch-net_c
diff -N patches/patch-net_c
--- patches/patch-net_c 26 Oct 2007 22:10:06 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-net_c,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- net.c.orig Sun Aug 28 16:12:10 1994
-+++ net.c Sat Oct 27 00:05:07 2007
-@@ -80,7 +80,7 @@ int connect_mud(host, port, ses)
-
- tintin_puts("#Trying to connect..", ses);
-
-- alarm(15); /* We'll allow connect to hang in 15seconds! NO
MORE! */
-+ alarm(30); /* We'll allow connect to hang in 30seconds!
NO MORE! */
- ticker_interrupted=FALSE;
- connectresult=connect(sock, (struct sockaddr *)&sockaddr, sizeof(sockaddr));
- #if defined(DEBUG)
Index: patches/patch-parse_c
===================================================================
RCS file: /cvs/ports/net/tintin++/patches/patch-parse_c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-parse_c
--- patches/patch-parse_c 11 Jan 2010 07:19:17 -0000 1.2
+++ patches/patch-parse_c 2 Jan 2014 04:17:27 -0000
@@ -1,16 +1,10 @@
-$OpenBSD: patch-parse_c,v 1.2 2010/01/11 07:19:17 ajacoutot Exp $
---- parse.c.orig Sun Aug 28 16:12:10 1994
-+++ parse.c Mon Jan 11 08:15:04 2010
-@@ -670,10 +670,10 @@ void prompt(ses)
- if(ses && !PSEUDO_PROMPT)
- write_line_mud("", ses);
- else if (!is_split)
-- write(1,"> ", 3);
-+ write(1,"> ", 2);
- else {
- sprintf(strng,"8> 7[%d;%df", input_row, input_col);
-- write(1,strng, strlen(strng)+1);
-+ write(1,strng, strlen(strng));
- display_col+=2;
- }
- }
+--- parse.c.orig Wed Jan 1 20:07:52 2014
++++ parse.c Wed Jan 1 20:08:17 2014
+@@ -518,6 +518,7 @@
+ pti = space_out(string);
+ pto = result;
+ ptii = NULL;
++ ptoo = NULL;
+
+ while (*pti)
+ {
Index: patches/patch-utils_c
===================================================================
RCS file: patches/patch-utils_c
diff -N patches/patch-utils_c
--- patches/patch-utils_c 26 Oct 2007 22:10:06 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,22 +0,0 @@
-$OpenBSD: patch-utils_c,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
---- utils.c.orig Sun Aug 28 16:12:16 1994
-+++ utils.c Sat Oct 27 00:05:07 2007
-@@ -21,6 +21,8 @@
- #include <unistd.h>
- #endif
-
-+#include <sys/param.h>
-+
- void syserr();
-
- /*********************************************/
-@@ -56,7 +58,9 @@ void syserr(msg)
- 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<sys_nerr)
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/tintin++/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST 11 Jan 2010 07:19:17 -0000 1.5
+++ pkg/PLIST 2 Jan 2014 04:17:27 -0000
@@ -1,4 +1,2 @@
@comment $OpenBSD: PLIST,v 1.5 2010/01/11 07:19:17 ajacoutot Exp $
@bin bin/tt++
-lib/tintin/
-lib/tintin/.tt_help.txt.Z