summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordillo <dillo>2003-10-05 22:09:58 +0000
committerdillo <dillo>2003-10-05 22:09:58 +0000
commitb8c172004279c0e129cb9c0543b3e8457e3ddc47 (patch)
tree8d80c250321b0437b0dfb30ebd52bd90ed9ca236 /games
parent9ed823283c1316aa3b3301797ca6e884d3a6b19d (diff)
downloadpkgsrc-b8c172004279c0e129cb9c0543b3e8457e3ddc47.tar.gz
Initial import of tads 3.0.5, a compiler and interpreter for
interactive fiction.
Diffstat (limited to 'games')
-rw-r--r--games/tads/DESCR2
-rw-r--r--games/tads/Makefile23
-rw-r--r--games/tads/PLIST138
-rw-r--r--games/tads/distinfo7
-rw-r--r--games/tads/patches/patch-aa53
-rw-r--r--games/tads/patches/patch-ab13
-rw-r--r--games/tads/patches/patch-ac79
7 files changed, 315 insertions, 0 deletions
diff --git a/games/tads/DESCR b/games/tads/DESCR
new file mode 100644
index 00000000000..7778561c5f8
--- /dev/null
+++ b/games/tads/DESCR
@@ -0,0 +1,2 @@
+Compiler and Interpreter for TADS (Text Adventure Development System),
+version 2 and 3.
diff --git a/games/tads/Makefile b/games/tads/Makefile
new file mode 100644
index 00000000000..ad3c7469867
--- /dev/null
+++ b/games/tads/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/10/05 22:09:58 dillo Exp $
+#
+
+DISTNAME= tads23-unix
+PKGNAME= tads-3.0.5
+WRKSRC= ${WRKDIR}/tads
+CATEGORIES= games
+MASTER_SITES= http://www.ifarchive.org/if-archive/programming/tads2/source/
+
+MAINTAINER= dillo@giga.or.at
+HOMEPAGE= http://www.ifarchive.org/if-archive/programming/tads2/source/
+COMMENT= TADS compiler and interpreter
+
+# for other OSs, enable appropriate Makefile sections
+ONLY_FOR_PLATFORM= NetBSD-*-*
+
+USE_BUILDLINK2= yes
+NO_CONFIGURE= yes
+BUILD_DIRS= ${WRKSRC}/tads2 ${WRKSRC}/tads3
+MAKEFILE= makefile
+
+.include "../../devel/ncurses/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/tads/PLIST b/games/tads/PLIST
new file mode 100644
index 00000000000..c50717ab8cb
--- /dev/null
+++ b/games/tads/PLIST
@@ -0,0 +1,138 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/10/05 22:09:58 dillo Exp $
+bin/t23run
+bin/t3make
+bin/t3run
+bin/tadsc
+bin/tadsr
+bin/tdb
+share/doc/html/tads3/changes.htm
+share/doc/html/tads3/changes_lib.htm
+share/doc/html/tads3/index.htm
+share/doc/html/tads3/lib_cont.htm
+share/doc/html/tads3/t3BigNum.htm
+share/doc/html/tads3/t3alone.htm
+share/doc/html/tads3/t3anonfn.htm
+share/doc/html/tads3/t3apiorg.htm
+share/doc/html/tads3/t3banner.htm
+share/doc/html/tads3/t3build.htm
+share/doc/html/tads3/t3bytarr.htm
+share/doc/html/tads3/t3chars.htm
+share/doc/html/tads3/t3cmap.htm
+share/doc/html/tads3/t3coll.htm
+share/doc/html/tads3/t3cont.gif
+share/doc/html/tads3/t3cset.htm
+share/doc/html/tads3/t3dict.htm
+share/doc/html/tads3/t3dispfn.htm
+share/doc/html/tads3/t3dynobj.htm
+share/doc/html/tads3/t3enum.htm
+share/doc/html/tads3/t3exc.htm
+share/doc/html/tads3/t3export.htm
+share/doc/html/tads3/t3expr.htm
+share/doc/html/tads3/t3fctl.htm
+share/doc/html/tads3/t3file.htm
+share/doc/html/tads3/t3frame.htm
+share/doc/html/tads3/t3gc.htm
+share/doc/html/tads3/t3gram.htm
+share/doc/html/tads3/t3hello.htm
+share/doc/html/tads3/t3icext.htm
+share/doc/html/tads3/t3icic.htm
+share/doc/html/tads3/t3intcl.htm
+share/doc/html/tads3/t3intfn.htm
+share/doc/html/tads3/t3intro.htm
+share/doc/html/tads3/t3iter.htm
+share/doc/html/tads3/t3libpre.htm
+share/doc/html/tads3/t3list.htm
+share/doc/html/tads3/t3lookup.htm
+share/doc/html/tads3/t3naming.htm
+share/doc/html/tads3/t3obj.htm
+share/doc/html/tads3/t3objcl.htm
+share/doc/html/tads3/t3parse.htm
+share/doc/html/tads3/t3pp.htm
+share/doc/html/tads3/t3refl.htm
+share/doc/html/tads3/t3regex.htm
+share/doc/html/tads3/t3rexpat.htm
+share/doc/html/tads3/t3run.htm
+share/doc/html/tads3/t3start.htm
+share/doc/html/tads3/t3stm.htm
+share/doc/html/tads3/t3str.htm
+share/doc/html/tads3/t3strcmp.htm
+share/doc/html/tads3/t3t3.htm
+share/doc/html/tads3/t3tadsio.htm
+share/doc/html/tads3/t3term.htm
+share/doc/html/tads3/t3tgen.htm
+share/doc/html/tads3/t3tobj.htm
+share/doc/html/tads3/t3tok.htm
+share/doc/html/tads3/t3trans.htm
+share/doc/html/tads3/t3type.htm
+share/doc/html/tads3/t3undef.htm
+share/doc/html/tads3/t3vector.htm
+share/doc/html/tads3/tads3.htm
+share/tads3/includes/bignum.h
+share/tads3/includes/bytearr.h
+share/tads3/includes/charset.h
+share/tads3/includes/dict.h
+share/tads3/includes/file.h
+share/tads3/includes/gramprod.h
+share/tads3/includes/lookup.h
+share/tads3/includes/reflect.h
+share/tads3/includes/strcomp.h
+share/tads3/includes/systype.h
+share/tads3/includes/t3.h
+share/tads3/includes/t3test.h
+share/tads3/includes/tads.h
+share/tads3/includes/tadsgen.h
+share/tads3/includes/tadsio.h
+share/tads3/includes/tok.h
+share/tads3/includes/vector.h
+share/tads3/libraries/_main.t
+share/tads3/libraries/adv3/action.t
+share/tads3/libraries/adv3/actions.t
+share/tads3/libraries/adv3/actor.t
+share/tads3/libraries/adv3/adv3.h
+share/tads3/libraries/adv3/adv3.tl
+share/tads3/libraries/adv3/disambig.t
+share/tads3/libraries/adv3/en_us/en_us.h
+share/tads3/libraries/adv3/en_us/en_us.t
+share/tads3/libraries/adv3/en_us/en_us.tl
+share/tads3/libraries/adv3/en_us/instruct.t
+share/tads3/libraries/adv3/en_us/msg_neu.t
+share/tads3/libraries/adv3/events.t
+share/tads3/libraries/adv3/exec.t
+share/tads3/libraries/adv3/exits.t
+share/tads3/libraries/adv3/extras.t
+share/tads3/libraries/adv3/footnote.t
+share/tads3/libraries/adv3/input.t
+share/tads3/libraries/adv3/lister.t
+share/tads3/libraries/adv3/misc.t
+share/tads3/libraries/adv3/modid.t
+share/tads3/libraries/adv3/numbers.t
+share/tads3/libraries/adv3/objects.t
+share/tads3/libraries/adv3/output.t
+share/tads3/libraries/adv3/parser.t
+share/tads3/libraries/adv3/pov.t
+share/tads3/libraries/adv3/precond.t
+share/tads3/libraries/adv3/report.t
+share/tads3/libraries/adv3/resolver.t
+share/tads3/libraries/adv3/score.t
+share/tads3/libraries/adv3/sense.t
+share/tads3/libraries/adv3/status.t
+share/tads3/libraries/adv3/thing.t
+share/tads3/libraries/adv3/to_do.txt
+share/tads3/libraries/adv3/travel.t
+share/tads3/libraries/adv3/verify.t
+share/tads3/libraries/file.t
+share/tads3/libraries/gameinfo.t
+share/tads3/libraries/reflect.t
+share/tads3/libraries/system.tl
+share/tads3/libraries/tok.t
+share/tads3/resources/charmap/README.txt
+share/tads3/resources/charmap/cmaplib.t3r
+share/tads3/resources/charmap/us-ascii.txt
+@dirrm share/tads3/resources/charmap
+@dirrm share/tads3/resources
+@dirrm share/tads3/libraries/adv3/en_us
+@dirrm share/tads3/libraries/adv3
+@dirrm share/tads3/libraries
+@dirrm share/tads3/includes
+@dirrm share/tads3
+@dirrm share/doc/html/tads3
diff --git a/games/tads/distinfo b/games/tads/distinfo
new file mode 100644
index 00000000000..b2efa615701
--- /dev/null
+++ b/games/tads/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/10/05 22:09:58 dillo Exp $
+
+SHA1 (tads23-unix.tar.gz) = 0d462f19087a257257acf5b57cab30eecd3bfb56
+Size (tads23-unix.tar.gz) = 3470301 bytes
+SHA1 (patch-aa) = 70e1acb58e7a15e05303e69cb77fa68fa454ce3d
+SHA1 (patch-ab) = b8e48ff15ef5fa1834c98a5bcc6df3d732dfe062
+SHA1 (patch-ac) = 43f30f1c1c2c52d3164cb8439b2bb86b5609f0cc
diff --git a/games/tads/patches/patch-aa b/games/tads/patches/patch-aa
new file mode 100644
index 00000000000..306fb80e809
--- /dev/null
+++ b/games/tads/patches/patch-aa
@@ -0,0 +1,53 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/10/05 22:09:58 dillo Exp $
+
+--- tads2/makefile.orig Wed Sep 25 18:43:09 2002
++++ tads2/makefile
+@@ -50,7 +50,7 @@
+ #
+
+ # Install point for the tadsc, tadsr, and tdb executables
+-BINDIR=/usr/local/bin
++BINDIR=${PREFIX}/bin
+
+ #
+ # Places to look for include files.
+@@ -270,16 +270,18 @@ MATT=Matt Herberg <meherberg@earthlink.n
+ # No testing has been done on pre 1.5 or a.out systems
+ # HAVE_TPARM is set in osunixt.h
+ #
+-#CC=gcc
+-#OPTIMIZE=
+-#UNIXFLAGS=-g -DOSANSI -DUNIX -DHAVE_STRCASECMP
+-#SYSFLAGS= -DOS_SYSTEM_NAME=\""NETBSD"\" -DSYSNAME=\""NetBSD"\" -DSYSPL=\"1\" -DPORTER=\""$(DOUGLAS)"\" -DSYSMAINTAINER=\""NetBSD port maintained by $(DOUGLAS)\n"\"
+-#CFLAGS= $(UNIXFLAGS) $(SYSFLAGS) -DNETBSD
+-#AFLAGS=
+-#OVLFLG=
+-#MACHDEP=
+-#LIBS=-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lncurses
+-#MAKEXEC=touch
++.if ${OPSYS} == "NetBSD"
++CC=gcc
++OPTIMIZE=
++UNIXFLAGS=-g -DOSANSI -DUNIX -DHAVE_STRCASECMP
++SYSFLAGS=-DOS_SYSTEM_NAME=\""NETBSD"\" -DSYSNAME=\""NetBSD"\" -DSYSPL=\"1\" -DPORTER=\""$(DOUGLAS)"\" -DSYSMAINTAINER=\""NetBSD port maintained by $(DOUGLAS)\n"\"
++CFLAGS+=$(UNIXFLAGS) $(SYSFLAGS) -DNETBSD
++AFLAGS=
++OVLFLG=
++MACHDEP=
++LIBS=$(LDFLAGS) -lncurses
++MAKEXEC=touch
++.endif
+
+ #
+ # i386+ running DOS/Windows, using DJGPP 2.X
+@@ -374,8 +376,8 @@ TDBOBJS= $(DBGOBJS) osgen.o osunixt.o tp
+ all: tadsr tadsc tdb
+
+ install: all
+- install -d $(BINDIR)
+- install -s -m755 tadsc tadsr tdb $(BINDIR)
++ #install -d $(BINDIR)
++ ${BSD_INSTALL_PROGRAM} tadsc tadsr tdb $(BINDIR)
+
+ tadsr: $(TROBJS)
+ $(CC) $(CFLAGS) $(TROBJS) -o tadsr $(LIBS)
diff --git a/games/tads/patches/patch-ab b/games/tads/patches/patch-ab
new file mode 100644
index 00000000000..6014cde763e
--- /dev/null
+++ b/games/tads/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/10/05 22:09:58 dillo Exp $
+
+--- tads2/osunixt.h.orig Wed Sep 25 18:43:09 2002
++++ tads2/osunixt.h
+@@ -89,7 +89,7 @@ Tue Nov 22 15:16:10 EST 1994 Dave Bag
+ #define USE_SGTTY
+ #endif
+
+-#if !defined(SUN_SPARC_SUNOS) && !defined(SUN3) && !defined(ULTRIX_MIPS) && !defined(LINUX_386) && !defined(NEXT) && !defined(IBM_RT) && !defined(IBM_AIX)
++#if !defined(SUN_SPARC_SUNOS) && !defined(SUN3) && !defined(ULTRIX_MIPS) && !defined(LINUX_386) && !defined(NEXT) && !defined(IBM_RT) && !defined(IBM_AIX) && !defined(__NetBSD__)
+ #define HAVE_TPARM /* define if this system has the tparm routine */
+ #endif
+
diff --git a/games/tads/patches/patch-ac b/games/tads/patches/patch-ac
new file mode 100644
index 00000000000..943c57eecca
--- /dev/null
+++ b/games/tads/patches/patch-ac
@@ -0,0 +1,79 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/10/05 22:09:58 dillo Exp $
+
+--- tads3/makefile.orig Sat Sep 28 23:29:18 2002
++++ tads3/makefile
+@@ -14,9 +14,9 @@
+ # Installation points for TADS3. Tailor these to your liking. If you install
+ # manually, DATADIR must match where you actually put the libraries and
+ # resources, or the TADS3 compiler will not be able to find them.
+-PREFIX = /usr/local
++#PREFIX = /usr/local
+ BINDIR = $(PREFIX)/bin
+-DOCDIR = $(PREFIX)/doc/tads3
++DOCDIR = $(PREFIX)/share/doc/html/tads3
+ DATADIR = $(PREFIX)/share/tads3
+ LIBDIR = $(DATADIR)/libraries
+ INCDIR = $(DATADIR)/includes
+@@ -113,6 +113,25 @@ RESDIR = $(DATADIR)/resources
+ #DISPLAY_LIB = -ltermcap
+
+ ###########################################################################
++# NetBSD #
++# Compiled and tested on NetBSD 1.6 #
++# Maintainer: #
++# #
++# Uncomment -fno-exceptions from CXX_OPTIMIZE if you have a reasonably #
++# current (> 2.7) version of g++. #
++###########################################################################
++#
++.if ${OPSYS} == "NetBSD"
++CXX = g++
++CC = gcc
++IDENT = -DOS_SYSTEM_NAME=\"NetBSD\"
++OPTIMIZE = -O2
++CXX_OPTIMIZE = -fno-exceptions
++OS_FLAGS = -DOS_ANSI -DHAVE_STRCASECMP -Dmemicmp=strncasecmp
++DISPLAY_LIB = ${LDFLAGS} -lncurses
++.endif
++
++###########################################################################
+ # OpenBSD #
+ # Compiled and tested on OpenBSD 3.0 #
+ # Maintainer: Mark Wickham (macwickham@attbi.com) #
+@@ -208,21 +227,27 @@ T3PRE_OBJS = test_pre.o std.o std_dbg.o
+ all: t3make t3run t23run t3pre
+
+ install: all install-common
+- install -m755 t3make t3run t23run $(BINDIR)
++ ${BSD_INSTALL_PROGRAM} t3make t3run t23run $(BINDIR)
+
+ install-strip: all install-common
+ install -s -m755 t3make t3run $(BINDIR)
+
+ install-common: all
+- install -d $(BINDIR)
+- install -d $(DOCDIR)
+- install -d $(DATADIR)
+ rm -rf $(INCDIR) $(LIBDIR) $(RESDIR) $(DOCDIR)
+- cp -rp t3include $(INCDIR)
+- cp -rp t3library $(LIBDIR)
+- cp -rp t3resource $(RESDIR)
+- cp -rp doc $(DOCDIR)
+- -chown -R root.root $(INCDIR) $(LIBDIR) $(RESDIR) $(DOCDIR)
++ ${BSD_INSTALL_DATA_DIR} $(DOCDIR)
++ ${BSD_INSTALL_DATA_DIR} $(DATADIR)
++ ${BSD_INSTALL_DATA_DIR} $(INCDIR)
++ ${BSD_INSTALL_DATA_DIR} $(LIBDIR)
++ ${BSD_INSTALL_DATA_DIR} $(LIBDIR)/adv3
++ ${BSD_INSTALL_DATA_DIR} $(LIBDIR)/adv3/en_us
++ ${BSD_INSTALL_DATA_DIR} $(RESDIR)
++ ${BSD_INSTALL_DATA_DIR} $(RESDIR)/charmap
++ ${BSD_INSTALL_DATA} t3include/* $(INCDIR)
++ ${BSD_INSTALL_DATA} t3library/*.* $(LIBDIR)
++ ${BSD_INSTALL_DATA} t3library/adv3/*.* $(LIBDIR)/adv3
++ ${BSD_INSTALL_DATA} t3library/adv3/en_us/*.* $(LIBDIR)/adv3/en_us
++ ${BSD_INSTALL_DATA} t3resource/charmap/* $(RESDIR)/charmap
++ ${BSD_INSTALL_DATA} doc/* $(DOCDIR)
+
+ clean:
+ rm -f *.o t3make t3run t23run t3pre test_utf8 test_chr test_pool test_err test_obj test_write test_exec test_gets test_tok test_prs test_sym test_prs_top test_comp_obj test_link test_regex test_sort iter.t3s test.t3v