summaryrefslogtreecommitdiff
path: root/print/teTeX/patches/patch-aa
blob: 8263a7556cca8e19ab75015a07bd7afd890ea512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
$NetBSD: patch-aa,v 1.7 1999/07/08 01:56:16 tron Exp $

--- Makefile.orig	Fri Feb 14 11:58:11 1997
+++ Makefile	Thu Jul  8 03:20:24 1999
@@ -8,10 +8,10 @@
 #=========================================================================
 VERSION = 0.4
 PATCHLEVEL = 7
-TETEXDIR=/usr/local/teTeX
+TETEXDIR=$(PREFIX)
 # the following should be best for a pentium
 # -O2 -s -m486 -malign-jumps=2 -malign-loops=2 -malign-functions=2
-CFLAGS	= -O2
+CFLAGS	:= $(CFLAGS) -pipe -DHAVE_EXTERN_SYS_ERRLIST=1 -DPOINTER_IS_NOT_INT
 
 # For "real" 64bit OS, e.g. Digital Unix 4.0. Irix6?, use:
 # CFLAGS += -DPOINTER_IS_NOT_INT
@@ -21,7 +21,7 @@
 
 # -s makes problems on some platforms. We run strip after "make install",
 # so we really do not need -s here.
-LDFLAGS	=
+LDFLAGS += -s
 
 # The shared libXmu from OpenWindows is buggy on some SunOS 4.1.3 systems.
 # If you run into this problem (when linking xdvi), set BROKEN_SUNOS_LIBXMU
@@ -33,8 +33,8 @@
 # for the X Window System to the vendor specific directories (e.g.
 # /usr/openwin/{include,lib}). To turn off this "feature", set
 # USE_VENDOR_X=no. You may also need to set XINC and XLIB (see below).
-USE_VENDOR_X=yes
-#USE_VENDOR_X=no
+#USE_VENDOR_X=yes
+USE_VENDOR_X=no
 
 #=========================================================================
 # Set these, if configure cannot find the location of your libs and
@@ -70,24 +70,24 @@
 # set USE_DIALOG=false if compiling dialog causes trouble on your system
 # texconfig will still run in command-mode
 #=========================================================================
-override USE_DIALOG=true
+USE_DIALOG=false
 
 #=========================================================================
 # set USE_NCURSES=false if you want to use your system curses instead of
 # the ncurses library.
 #=========================================================================
-override USE_NCURSES=true
+USE_NCURSES=false
 
 #=========================================================================
 # set HAVE_NCURSES=true if you want to use an already installed version of
 # the ncurses library.
 #=========================================================================
-override HAVE_NCURSES=false
+HAVE_NCURSES=true
 
 #=========================================================================
 # X stuff
 #=========================================================================
-NO_X_FOR_MF	= -DNO_X11WIN
+NO_X_FOR_MF	=
 
 # change the true/false definition of FOIL, if you get an error with wchar_t
 FOIL		= false
@@ -111,17 +111,17 @@
 platform	= $(shell ./config.guess | sed 's/-.*-/-/')
 CWD		:= $(shell pwd)
 INSTALL		= $(CWD)/$(KPSEDIR)/bin/install -c
-override prefix	= $(TETEXDIR)
-override bindir	= $(prefix)/bin/$(platform)
-override TEXMF	= $(TETEXDIR)/texmf
+override prefix	= $(PREFIX)
+override bindir	= $(PREFIX)/bin
+override TEXMF	= $(PREFIX)/share/texmf
 override PATH	:= $(bindir):$(CWD)/bin-extra:$(CWD)/$(KPSEDIR)/bin:$(PATH)
 
-CONFDIRS   = $(KPSEDIR) $(TEXIDIR)
+CONFDIRS   = $(KPSEDIR)
 ifeq ($(USE_DIALOG),true)
-SUBDIRS    = $(TEXIDIR) $(MKINDEXDIR) $(KPSEDIR) $(DIALOGDIR) bin-extra
+SUBDIRS    = $(MKINDEXDIR) $(KPSEDIR) $(DIALOGDIR) bin-extra
 CONFDIRS   += $(DIALOGDIR)
 else
-SUBDIRS    = $(TEXIDIR) $(MKINDEXDIR) $(KPSEDIR) bin-extra
+SUBDIRS    = $(MKINDEXDIR) $(KPSEDIR) bin-extra
 override USE_NCURSES = no
 endif
 
@@ -205,7 +205,6 @@
 	for i in $(SUBDIRS); do \
 	  (set -x; cd $$i; $(MAKE) $(PASSENV) $@ || exit 1); \
 	done
-	@strip $(bindir)/* >/dev/null 2>&1 || true
 
 rmcache:
 	rm -f config.cache
@@ -259,16 +258,7 @@
 	rm -rf tmp
 
 $(TETEXDIR)/texmf.cnf:
-	@echo
-	@echo "ERROR: The file $(TETEXDIR)/texmf.cnf does not exist."
-	@echo
-	@echo "Do not copy it from the source-tree to this location."
-	@echo "Instead, install the inputs-tree for teTeX (form"
-	@echo "teTeX-lib-$(VERSION).tar.gz or base/goodies series and "
-	@echo "make sure that TETEXDIR in this Makefile points to the"
-	@echo "directory where the files are installed."
-	@echo
-	@false
+	@true
 
 distrib: distrib-pre distrib-all distrib-install
 config: warn-texmfcnf