summaryrefslogtreecommitdiff
path: root/graphics/tcm/patches
diff options
context:
space:
mode:
authorjtb <jtb>2001-02-24 01:29:53 +0000
committerjtb <jtb>2001-02-24 01:29:53 +0000
commit12eecccfda684198940cac60dc6da13f9ce7e208 (patch)
tree64fd9e25df74d930a75a4e71874c932cb7032e3d /graphics/tcm/patches
parentd3ba0849db84601b75e837c1d70243607ca19492 (diff)
downloadpkgsrc-12eecccfda684198940cac60dc6da13f9ce7e208.tar.gz
Initial import of tcm:
TCM is a collection of graphical editors for different software specification methods. It contains generic editors (for generic diagrams, tables and trees), editors for Structured Analysis (entity-relationship diagrams, data and event flow diagrams, state-transition diagrams, function refinement trees etc.) and editors for UML (static-structure diagrams, use-case diagrams, activity diagrams etc.). TCM supports constraint checking for single documents (e.g. name duplication and cycles in is-a relationships). TCM distinguishes built-in constraints (of which a violation cannot even be attempted) from immediate constraints (of which an attempted violation is immediately prevented) and soft constraints (against which the editor provides a warning when it checks the drawing). TCM is planned to support hierarchic graphs, so that it can handle, for example, hierarchic statecharts. Features to be added later include constraint checking across documents and executable models. In addition to the TCM file format, TCM outputs Plain PostScript, Encapsulated PostScript, PNG and the XFig file format. The TCM file format is simple to read and parse so other forms of output can be generated easily.
Diffstat (limited to 'graphics/tcm/patches')
-rw-r--r--graphics/tcm/patches/patch-aa48
-rw-r--r--graphics/tcm/patches/patch-ab15
-rw-r--r--graphics/tcm/patches/patch-ac14
-rw-r--r--graphics/tcm/patches/patch-ad51
-rw-r--r--graphics/tcm/patches/patch-ae18
-rw-r--r--graphics/tcm/patches/patch-af18
-rw-r--r--graphics/tcm/patches/patch-ag15
-rw-r--r--graphics/tcm/patches/patch-ah18
-rw-r--r--graphics/tcm/patches/patch-ai14
-rw-r--r--graphics/tcm/patches/patch-aj14
-rw-r--r--graphics/tcm/patches/patch-ak14
-rw-r--r--graphics/tcm/patches/patch-al12
-rw-r--r--graphics/tcm/patches/patch-am17
-rw-r--r--graphics/tcm/patches/patch-an21
-rw-r--r--graphics/tcm/patches/patch-ao13
-rw-r--r--graphics/tcm/patches/patch-ap13
-rw-r--r--graphics/tcm/patches/patch-aq13
-rw-r--r--graphics/tcm/patches/patch-ar18
-rw-r--r--graphics/tcm/patches/patch-as57
-rw-r--r--graphics/tcm/patches/patch-at21
-rw-r--r--graphics/tcm/patches/patch-au16
-rw-r--r--graphics/tcm/patches/patch-av16
22 files changed, 456 insertions, 0 deletions
diff --git a/graphics/tcm/patches/patch-aa b/graphics/tcm/patches/patch-aa
new file mode 100644
index 00000000000..0a8475f9c97
--- /dev/null
+++ b/graphics/tcm/patches/patch-aa
@@ -0,0 +1,48 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/02/24 01:30:05 jtb Exp $
+
+--- /dev/null Fri Feb 23 22:20:01 2001
++++ Config.tmpl_netbsd
+@@ -0,0 +1,43 @@
++# Configuration file for NetBSD 1.5 and GNU compilers.
++
++SYSFLAGS = -DBSD -DLESSTIF
++
++SRC_DIR = $(TCM_HOME)/src
++BIN_DIR = $(TCM_HOME)/bin
++LIB_DIR = $(TCM_HOME)/lib
++
++SHAREDFLAGS = -shared
++
++MOTIF_INCLUDE = $(MOTIF_HOME)/include
++MOTIF_LIB = $(MOTIF_HOME)/lib
++
++XWIN_INCLUDE = $(XWIN_HOME)/include
++XWIN_LIB = $(XWIN_HOME)/lib
++
++LDFLAGS += -Wl,-R$(LIB_DIR) -L$(LIB_DIR) -R$(MOTIF_LIB) -L$(MOTIF_LIB) -R$(XWIN_LIB) -L$(XWIN_LIB)
++
++LDLIBS += -lXm -lXt -lSM -lICE -lXext -lX11 -lm
++
++STRIP ?= /usr/bin/true
++MV ?= /bin/mv
++RM ?= /bin/rm
++
++INCLUDEDIRS = -I.\
++ -I$(SRC_DIR)/bitmaps\
++ -I$(SRC_DIR)/gl\
++ -I$(SRC_DIR)/ui\
++ -I$(SRC_DIR)/ed\
++ -I$(SRC_DIR)/dg\
++ -I$(SRC_DIR)/tb\
++ -I$(MOTIF_INCLUDE)\
++ -I$(XWIN_INCLUDE)\
++
++CPPFLAGS += $(SYSFLAGS) $(INCLUDEDIRS)
++MKDEPEND = $(XWIN_HOME)/bin/makedepend
++MKDEPENDFLAGS = $(CPPFLAGS) -I/usr/include/g++
++
++xclean:
++ $(RM) *.o core $(SRC_DIR)/ptrepository/* $(SRC_DIR)/Templates.DB/*
++
++xdepend:
++ $(MKDEPEND) $(MKDEPENDFLAGS) *.*c
diff --git a/graphics/tcm/patches/patch-ab b/graphics/tcm/patches/patch-ab
new file mode 100644
index 00000000000..0785d48a328
--- /dev/null
+++ b/graphics/tcm/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/02/24 01:30:05 jtb Exp $
+
+--- st/Makefile.orig Wed Dec 20 13:32:45 2000
++++ st/Makefile
+@@ -10,8 +10,8 @@
+
+ tcmt: $(TBOBJECTS) tcmt.o
+ $(PURIFY) $(CC) $(CFLAGS) $(TBOBJECTS) tcmt.o \
+- $(LIB_DIR)/libtable.a $(LIB_DIR)/libeditor.a $(LIB_DIR)/libgui.a \
+- -o $@ $(LDFLAGS) $(LIB_DIR)/libglobal.a $(LDLIBS)
++ -L$(LIB_DIR) -ltable -leditor -lgui \
++ -o $@ $(LDFLAGS) -lglobal $(LDLIBS)
+ chmod a+rx $@
+ $(STRIP) $@
+ $(MV) $@ $(BIN_DIR)
diff --git a/graphics/tcm/patches/patch-ac b/graphics/tcm/patches/patch-ac
new file mode 100644
index 00000000000..e456a3b6e17
--- /dev/null
+++ b/graphics/tcm/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/02/24 01:30:05 jtb Exp $
+
+--- dg/diagramchecks.h.orig Thu Feb 22 17:24:21 2001
++++ dg/diagramchecks.h
+@@ -23,7 +23,9 @@
+ #define _DIAGRAMCHECKS_H
+
+ #include "bool.h"
++#ifndef __NetBSD__
+ #include <values.h>
++#endif
+ class Graph;
+ class Diagram;
+ class string;
diff --git a/graphics/tcm/patches/patch-ad b/graphics/tcm/patches/patch-ad
new file mode 100644
index 00000000000..699cef4ac3b
--- /dev/null
+++ b/graphics/tcm/patches/patch-ad
@@ -0,0 +1,51 @@
+$NetBSD: patch-ad,v 1.1.1.1 2001/02/24 01:30:06 jtb Exp $
+
+--- gl/system.c.orig Tue Nov 21 12:32:14 2000
++++ gl/system.c
+@@ -47,7 +47,7 @@
+
+ const char System::TOOLKIT_HOME_VAR_NAME[] = "TCM_HOME";
+
+-const char System::TOOLKIT_HOME_DEFAULT[] = "/home/tcm";
++const char System::TOOLKIT_HOME_DEFAULT[] = "@PREFIX@";
+
+ bool System::sendBugEmail = True;
+ char System::emailAddress[MAXNAME] = "tcm@cs.vu.nl";
+@@ -63,13 +63,11 @@
+ // most common Unix directories for system wide available binaries.
+ const char *System::STD_SEARCH_DIRS[] =
+ {"./", "/bin/", "/usr/bin/", "/usr/local/bin/",
+- "/usr/local/tcm/bin", "/home/tcm/bin", "/usr/bin/X11/",
+- "/usr/ucb/", "/usr/sbin/", "/usr/X11/bin/", "/usr/openwin/bin/",
+- "/opt/tcm/bin", "/usr/local/X11/bin", "/usr/local/bin/X11/",
+- "/usr/openwin/contrib/bin", "/Window/X11/bin",
+- "/Window/X11/contrib/bin", 0};
++ "@PREFIX@/bin/", "@X11BASE@/bin/", "@LOCALBASE@/bin/",
++ "/usr/openwin/bin", "/usr/sbin/", "/usr/X11/bin/",
++ "/opt/tcm/bin", "/usr/local/X11/bin", "/usr/local/bin/X11/", 0};
+
+-#if defined(LINUX) || defined(AIX) || defined(HPUX) || defined(OSF1)
++#if defined(LINUX) || defined(AIX) || defined(HPUX) || defined(OSF1) || defined(__NetBSD__)
+ typedef void (*SIG_PF)(int);
+ #endif
+
+@@ -177,11 +175,14 @@
+ return;
+ }
+ else {
+- cerr << "Error: " << TOOLKIT_HOME_VAR_NAME
+- << " environment variable is not set" << endl;
+- cerr << "please set this variable to the"
+- " directory where the software is installed "
+- "and try it again" << endl;
++ char *p2 = TOOLKIT_HOME_DEFAULT;
++ strncpy(home, p2, MAXNAME-1);
++ return;
++ // cerr << "Error: " << TOOLKIT_HOME_VAR_NAME
++ // << " environment variable is not set" << endl;
++ //cerr << "please set this variable to the"
++ // " directory where the software is installed "
++ // "and try it again" << endl;
+ }
+ exit(1);
+ }
diff --git a/graphics/tcm/patches/patch-ae b/graphics/tcm/patches/patch-ae
new file mode 100644
index 00000000000..df69edb2297
--- /dev/null
+++ b/graphics/tcm/patches/patch-ae
@@ -0,0 +1,18 @@
+$NetBSD: patch-ae,v 1.1.1.1 2001/02/24 01:30:06 jtb Exp $
+
+--- sd/bv/stdiagram.c.orig Thu Feb 22 17:27:07 2001
++++ sd/bv/stdiagram.c
+@@ -34,7 +34,13 @@
+ #include "transitionarrow.h"
+ #include "initialstatebox.h"
+ #include "stdiagram.h"
++#ifndef __NetBSD__
+ #include <values.h>
++#endif
++#ifdef __NetBSD__
++#include <limits.h>
++#define MAXINT INT_MAX
++#endif
+
+ const int STDiagram::BOX_WIDTH = 100;
+ const int STDiagram::BOX_HEIGHT = 38;
diff --git a/graphics/tcm/patches/patch-af b/graphics/tcm/patches/patch-af
new file mode 100644
index 00000000000..9109e6aa9c9
--- /dev/null
+++ b/graphics/tcm/patches/patch-af
@@ -0,0 +1,18 @@
+$NetBSD: patch-af,v 1.1.1.1 2001/02/24 01:30:06 jtb Exp $
+
+--- sd/bv/rpdiagram.c.orig Thu Feb 22 17:30:14 2001
++++ sd/bv/rpdiagram.c
+@@ -34,7 +34,13 @@
+ #include "line.h"
+ #include "rpdiagram.h"
+ #include "diagramchecks.h"
++#ifndef __NetBSD__
+ #include <values.h>
++#endif
++#ifdef __NetBSD__
++#include <limits.h>
++#define MAXINT INT_MAX
++#endif
+
+ const int RPDiagram::BOX_WIDTH = 58;
+ const int RPDiagram::BOX_HEIGHT = 38;
diff --git a/graphics/tcm/patches/patch-ag b/graphics/tcm/patches/patch-ag
new file mode 100644
index 00000000000..53921ffcf04
--- /dev/null
+++ b/graphics/tcm/patches/patch-ag
@@ -0,0 +1,15 @@
+$NetBSD: patch-ag,v 1.1.1.1 2001/02/24 01:30:06 jtb Exp $
+
+--- sd/bv/atdiagram.c.orig Thu Feb 22 17:31:41 2001
++++ sd/bv/atdiagram.c
+@@ -46,6 +46,10 @@
+ #include "atgraph.h"
+ #include "atviewer.h"
+ #include "atwindow.h"
++#ifdef __NetBSD__
++#include <limits.h>
++#define MAXINT INT_MAX
++#endif
+
+ const int ATDiagram::DOT_WIDTH = 8;
+
diff --git a/graphics/tcm/patches/patch-ah b/graphics/tcm/patches/patch-ah
new file mode 100644
index 00000000000..4ad0e2ca72e
--- /dev/null
+++ b/graphics/tcm/patches/patch-ah
@@ -0,0 +1,18 @@
+$NetBSD: patch-ah,v 1.1.1.1 2001/02/24 01:30:06 jtb Exp $
+
+--- sd/dv/crdiagram.c.orig Thu Feb 22 17:33:44 2001
++++ sd/dv/crdiagram.c
+@@ -38,7 +38,13 @@
+ #include "textbox.h"
+ #include "comment.h"
+ #include "crdiagram.h"
++#ifndef __NetBSD__
+ #include <values.h>
++#endif
++#ifdef __NetBSD__
++#include <limits.h>
++#define MAXINT INT_MAX
++#endif
+
+ CRDiagram::CRDiagram(Config *c, CRWindow *d, CRViewer *v, CRGraph *g):
+ ERDiagram(c, d, v, g) {
diff --git a/graphics/tcm/patches/patch-ai b/graphics/tcm/patches/patch-ai
new file mode 100644
index 00000000000..4ee2a29bb8f
--- /dev/null
+++ b/graphics/tcm/patches/patch-ai
@@ -0,0 +1,14 @@
+$NetBSD: patch-ai,v 1.1.1.1 2001/02/24 01:30:06 jtb Exp $
+
+--- sd/dv/esddiagram.c.orig Thu Feb 22 17:36:02 2001
++++ sd/dv/esddiagram.c
+@@ -56,7 +56,9 @@
+ #include "miniellipse.h"
+ #include "esddiagram.h"
+ #include <stdio.h>
++#ifndef __NetBSD__
+ #include <values.h>
++#endif
+
+ const int ESDDiagram::MINI_ELLIPSE_WIDTH = 8;
+ const int ESDDiagram::MINI_ELLIPSE_HEIGHT = 8;
diff --git a/graphics/tcm/patches/patch-aj b/graphics/tcm/patches/patch-aj
new file mode 100644
index 00000000000..4925c4a0da9
--- /dev/null
+++ b/graphics/tcm/patches/patch-aj
@@ -0,0 +1,14 @@
+$NetBSD: patch-aj,v 1.1.1.1 2001/02/24 01:30:06 jtb Exp $
+
+--- sd/dv/ssddiagram.c.orig Thu Feb 22 17:37:36 2001
++++ sd/dv/ssddiagram.c
+@@ -56,7 +56,9 @@
+ #include "note.h"
+ #include "ssddiagram.h"
+ #include <stdio.h>
++#ifndef __NetBSD__
+ #include <values.h>
++#endif
+
+ const int SSDDiagram::MINI_ELLIPSE_WIDTH = 8;
+ const int SSDDiagram::MINI_ELLIPSE_HEIGHT = 8;
diff --git a/graphics/tcm/patches/patch-ak b/graphics/tcm/patches/patch-ak
new file mode 100644
index 00000000000..5dd0e2ba964
--- /dev/null
+++ b/graphics/tcm/patches/patch-ak
@@ -0,0 +1,14 @@
+$NetBSD: patch-ak,v 1.1.1.1 2001/02/24 01:30:06 jtb Exp $
+
+--- sd/dv/ucdiagram.c.orig Thu Feb 22 17:38:29 2001
++++ sd/dv/ucdiagram.c
+@@ -41,7 +41,9 @@
+ #include "ucdiagram.h"
+ #include "note.h"
+ #include <stdio.h>
++#ifndef __NetBSD__
+ #include <values.h>
++#endif
+
+ UCDiagram::UCDiagram(Config *c, UCWindow *d, UCViewer *v, UCGraph *g):
+ ERDiagram(c, d, v, g) {
diff --git a/graphics/tcm/patches/patch-al b/graphics/tcm/patches/patch-al
new file mode 100644
index 00000000000..ff2af5b052f
--- /dev/null
+++ b/graphics/tcm/patches/patch-al
@@ -0,0 +1,12 @@
+$NetBSD: patch-al,v 1.1.1.1 2001/02/24 01:30:07 jtb Exp $
+
+--- ui/error.c.orig Thu Feb 22 17:59:07 2001
++++ ui/error.c
+@@ -23,6 +23,7 @@
+ #include "application.h"
+ #include "messagelogdialog.h"
+ #include <stdarg.h>
++#include <iostdio.h>
+
+ void error(const char *fmt ...) {
+ // we're not getting huge strings
diff --git a/graphics/tcm/patches/patch-am b/graphics/tcm/patches/patch-am
new file mode 100644
index 00000000000..3de6439cac5
--- /dev/null
+++ b/graphics/tcm/patches/patch-am
@@ -0,0 +1,17 @@
+$NetBSD: patch-am,v 1.1.1.1 2001/02/24 01:30:07 jtb Exp $
+
+--- sd/tr/trdiagram.c.orig Fri Jun 18 15:30:17 1999
++++ sd/tr/trdiagram.c
+@@ -32,7 +32,11 @@
+ #include "trgraph.h"
+ #include "trview.h"
+ #include "diagramchecks.h"
+-
++#ifdef __NetBSD__
++#include <limits.h>
++#define MAXINT INT_MAX
++#endif
++
+ TRDiagram::TRDiagram(Config *c, TRWindow *d, TRViewer *v, TRGraph *g):
+ Diagram(c,d,v,g) {
+ UpdateNodeType(1);
diff --git a/graphics/tcm/patches/patch-an b/graphics/tcm/patches/patch-an
new file mode 100644
index 00000000000..95b527675b7
--- /dev/null
+++ b/graphics/tcm/patches/patch-an
@@ -0,0 +1,21 @@
+$NetBSD: patch-an,v 1.1.1.1 2001/02/24 01:30:07 jtb Exp $
+
+--- ui/application.c.orig Fri Nov 10 09:52:16 2000
++++ ui/application.c
+@@ -29,6 +29,7 @@
+ #include "system.h"
+ #include "color.h"
+ #include <stdlib.h>
++#include <iostdio.h>
+ #include <string.h>
+ #include <Xm/XmStrDefs.h>
+ #ifdef USE_XMIM
+@@ -41,7 +42,7 @@
+ return Application::XErrorHandler(dpy, err_event);
+ }
+
+-const char Application::COLORFILE[] = "lib/colorrgb.txt";
++const char Application::COLORFILE[] = "share/tcm/colorrgb.txt";
+
+ Application *theApplication = 0;
+
diff --git a/graphics/tcm/patches/patch-ao b/graphics/tcm/patches/patch-ao
new file mode 100644
index 00000000000..b10aa2b5ab7
--- /dev/null
+++ b/graphics/tcm/patches/patch-ao
@@ -0,0 +1,13 @@
+$NetBSD: patch-ao,v 1.1.1.1 2001/02/24 01:30:07 jtb Exp $
+
+--- ui/psgrafport.c.orig Fri Feb 23 18:12:13 2001
++++ ui/psgrafport.c
+@@ -25,7 +25,7 @@
+ #include "color.h"
+ #include <ctype.h>
+
+-const char PSGrafport::BANNER[] = "lib/banner.ps";
++const char PSGrafport::BANNER[] = "share/tcm/banner.ps";
+
+ const double PSGrafport::DEFAULT_LINE_WIDTH = 0.750;
+
diff --git a/graphics/tcm/patches/patch-ap b/graphics/tcm/patches/patch-ap
new file mode 100644
index 00000000000..d40d9e6cc6a
--- /dev/null
+++ b/graphics/tcm/patches/patch-ap
@@ -0,0 +1,13 @@
+$NetBSD: patch-ap,v 1.1.1.1 2001/02/24 01:30:07 jtb Exp $
+
+--- gl/config.c.orig Fri Feb 23 18:13:48 2001
++++ gl/config.c
+@@ -27,7 +27,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-const char Config::SYS_CONFIG[] = "lib/tcm.conf";
++const char Config::SYS_CONFIG[] = "etc/tcm.conf";
+ const char Config::USER_CONFIG[] = ".tcmrc";
+
+ Config::Config(const char *s) {
diff --git a/graphics/tcm/patches/patch-aq b/graphics/tcm/patches/patch-aq
new file mode 100644
index 00000000000..b9043c153d4
--- /dev/null
+++ b/graphics/tcm/patches/patch-aq
@@ -0,0 +1,13 @@
+$NetBSD: patch-aq,v 1.1.1.1 2001/02/24 01:30:07 jtb Exp $
+
+--- ed/helper.c.orig Fri Feb 23 18:17:11 2001
++++ ed/helper.c
+@@ -44,7 +44,7 @@
+ char home[MAXNAME];
+ System::GetToolkitHome(home);
+ string helpFile = home;
+- helpFile += "/lib/help/";
++ helpFile += "/share/tcm/help/";
+
+ switch(tp) {
+ case WELCOME:
diff --git a/graphics/tcm/patches/patch-ar b/graphics/tcm/patches/patch-ar
new file mode 100644
index 00000000000..d5c93ddc330
--- /dev/null
+++ b/graphics/tcm/patches/patch-ar
@@ -0,0 +1,18 @@
+$NetBSD: patch-ar,v 1.1.1.1 2001/02/24 01:30:07 jtb Exp $
+
+--- sd/gd/Makefile.orig Wed Dec 20 13:33:23 2000
++++ sd/gd/Makefile
+@@ -30,11 +30,8 @@
+ tcmd: tcmd.o
+ $(PURIFY) $(CC) $(CFLAGS) tcmd.o -o $@ \
+ -I../dv -I../bv -I../tr -I../fv \
+- $(LDFLAGS) $(LIB_DIR)/libtcmgd.a $(LIB_DIR)/libtcmtr.a \
+- $(LIB_DIR)/libtcmdv.a $(LIB_DIR)/libtcmbv.a $(LIB_DIR)/libtcmfv.a \
+- $(LIB_DIR)/libtcmpv.a \
+- $(LIB_DIR)/libdiagram.a $(LIB_DIR)/libeditor.a \
+- $(LIB_DIR)/libgui.a $(LIB_DIR)/libglobal.a $(LDLIBS)
++ $(LDFLAGS) -ltcmgd -ltcmtr -ltcmdv -ltcmbv -ltcmfv -ltcmpv \
++ -ldiagram -leditor -lgui -lglobal $(LDLIBS)
+ chmod a+rx $@
+ $(STRIP) $@
+ $(MV) $@ $(BIN_DIR)
diff --git a/graphics/tcm/patches/patch-as b/graphics/tcm/patches/patch-as
new file mode 100644
index 00000000000..fd2770d58b3
--- /dev/null
+++ b/graphics/tcm/patches/patch-as
@@ -0,0 +1,57 @@
+$NetBSD: patch-as,v 1.1.1.1 2001/02/24 01:30:08 jtb Exp $
+
+--- Makefile.gcc.orig Fri Feb 23 23:59:17 2001
++++ Makefile.gcc
+@@ -18,13 +18,13 @@
+
+ tcm:
+ ( cp ed/edinstances.h gl/instances.h )
+- ( cd ./gl ; touch llist.c )
++ ( cd ./gl ; touch llist.cc )
+ ( $(MAKE) libglobal.a )
+ ( cd ./ed ; $(MAKE) $@)
+
+ tcmd:
+ ( cp sd/sdinstances.h gl/instances.h )
+- ( cd ./gl ; touch llist.c )
++ ( cd ./gl ; touch llist.cc )
+ ( $(MAKE) libglobal.a )
+ ( cd ./sd ; $(MAKE) $@)
+
+@@ -32,31 +32,31 @@
+ tgtt tfrt tgd terd tesd tcrd tssd tucd tatd tstd tpsd tsnd trpg \
+ tscd tsqd tcbd tcpd tdpd:
+ ( cp dg/dginstances.h gl/instances.h )
+- ( cd ./gl ; touch llist.c )
++ ( cd ./gl ; touch llist.cc )
+ ( $(MAKE) libglobal.a )
+ ( cd ./sd ; $(MAKE) $@)
+
+ tcmfv tdfd tefd:
+ ( cp sd/fv/dfinstances.h gl/instances.h )
+- ( cd ./gl ; touch llist.c )
++ ( cd ./gl ; touch llist.cc )
+ ( $(MAKE) libglobal.a )
+ ( cd ./sd ; $(MAKE) $@)
+
+ tcmt tgt ttdt ttut tfet:
+ ( cp tb/tbinstances.h gl/instances.h )
+- ( cd ./gl ; touch llist.c )
++ ( cd ./gl ; touch llist.cc )
+ ( $(MAKE) libglobal.a )
+ ( cd ./st ; $(MAKE) $@)
+
+ # csod:
+ # ( cp cx/cx_instances.h gl/instances.h )
+-# ( cd ./gl ; touch llist.c )
++# ( cd ./gl ; touch llist.cc )
+ # ( $(MAKE) libglobal.a )
+ # ( cd ./cx ; $(MAKE) $@)
+
+ # ced:
+ # ( cp dg/dginstances.h gl/instances.h )
+-# ( cd ./gl ; touch llist.c )
++# ( cd ./gl ; touch llist.cc )
+ # ( $(MAKE) libglobal.a )
+ # ( cd ./cx ; $(MAKE) $@)
+
diff --git a/graphics/tcm/patches/patch-at b/graphics/tcm/patches/patch-at
new file mode 100644
index 00000000000..1309058047f
--- /dev/null
+++ b/graphics/tcm/patches/patch-at
@@ -0,0 +1,21 @@
+$NetBSD: patch-at,v 1.1.1.1 2001/02/24 01:30:08 jtb Exp $
+
+--- Makefile.GEN.orig Fri Feb 23 23:59:25 2001
++++ Makefile.GEN
+@@ -62,14 +62,14 @@
+ # instances are linked in the static lib.
+ libdiagram.a:
+ ( cp dg/dginstances.h gl/instances.h )
+- ( cd ./gl ; touch llist.c )
++ ( cd ./gl ; touch llist.cc )
+ ( $(MAKE) libglobal.a )
+ ( cd ./dg ; $(MAKE) libdiagram.a)
+ ( cd $(LIB_DIR) ; $(RANLIB) libdiagram.a)
+
+ libtable.a:
+ ( cp tb/tbinstances.h gl/instances.h )
+- ( cd ./gl ; touch llist.c )
++ ( cd ./gl ; touch llist.cc )
+ ( $(MAKE) libglobal.a )
+ ( cd ./tb ; $(MAKE) libtable.a)
+ ( cd $(LIB_DIR) ; $(RANLIB) libtable.a)
diff --git a/graphics/tcm/patches/patch-au b/graphics/tcm/patches/patch-au
new file mode 100644
index 00000000000..7bdf9e5088f
--- /dev/null
+++ b/graphics/tcm/patches/patch-au
@@ -0,0 +1,16 @@
+$NetBSD: patch-au,v 1.1.1.1 2001/02/24 01:30:08 jtb Exp $
+
+--- sd/dv/Makefile.orig Wed Dec 20 13:33:17 2000
++++ sd/dv/Makefile
+@@ -142,9 +142,9 @@
+ $(MV) $@ $(BIN_DIR)
+
+ cardconstraint.tab.h: cardconstraint.y
+- $(YACC) --debug -p cardconstraint -d cardconstraint.y
++ $(YACC) -b cardconstraint -p cardconstraint -d cardconstraint.y
+ cardconstraint.tab.c: cardconstraint.y cardconstraint.l
+- $(YACC) --debug -p cardconstraint -d cardconstraint.y
++ $(YACC) -b cardconstraint -p cardconstraint -d cardconstraint.y
+ cardconstraint.c: cardconstraint.l cardconstraint.tab.h
+ $(LEX) -Pcardconstraint -ocardconstraint.c cardconstraint.l
+ cardconstraint.o: cardconstraint.c
diff --git a/graphics/tcm/patches/patch-av b/graphics/tcm/patches/patch-av
new file mode 100644
index 00000000000..4b21de7e156
--- /dev/null
+++ b/graphics/tcm/patches/patch-av
@@ -0,0 +1,16 @@
+$NetBSD: patch-av,v 1.1.1.1 2001/02/24 01:30:08 jtb Exp $
+
+--- sd/fv/Makefile.orig Sat Feb 24 00:38:00 2001
++++ sd/fv/Makefile
+@@ -86,9 +86,9 @@
+ $(MV) $@ $(BIN_DIR)
+
+ cardconstraint.tab.h: cardconstraint.y
+- $(YACC) --debug -p cardconstraint -d cardconstraint.y
++ $(YACC) -b cardconstraint -p cardconstraint -d cardconstraint.y
+ cardconstraint.tab.c: cardconstraint.y cardconstraint.l
+- $(YACC) --debug -p cardconstraint -d cardconstraint.y
++ $(YACC) -b cardconstraint -p cardconstraint -d cardconstraint.y
+ cardconstraint.c: cardconstraint.l cardconstraint.tab.h
+ $(LEX) -Pcardconstraint -ocardconstraint.c cardconstraint.l
+ cardconstraint.o: cardconstraint.c