summaryrefslogtreecommitdiff
path: root/print/latex-cjk/files/patch-ac
blob: b6c47766373ae98cc81915b202eac6551ec2cf2c (plain) (blame)
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
--- utils/Makefile.orig	Thu Jan  6 20:50:10 2000
+++ utils/Makefile	Thu Jan  6 20:52:17 2000
@@ -0,0 +1,52 @@
+CC = /usr/bin/cc
+CFLAGS = -Wall -O
+
+TEXMF_DIR = $(PREFIX)/share/texmf
+LATEX_DIR = $(TEXMF_DIR)/tex/latex
+CJK_DIR = $(LATEX_DIR)/CJK
+
+export CP := /bin/cp
+export CHMOD := /bin/chmod
+export RM := /bin/rm
+
+export INSTALL := /usr/bin/install
+export INSTALL_DATA := $(INSTALL) -c -o root -g wheel -m 644
+export INSTALL_MAN := ${INSTALL_DATA}
+export INSTALL_PROGRAM := $(INSTALL) -c -s -o bin -g bin -m 755
+export INSTALL_SCRIPT := $(INSTALL) -c -o bin -g bin -m 755
+
+hbf2gf_build:
+	$(CHMOD) +x hbf2gf/config.guess hbf2gf/config.sub hbf2gf/configure
+	(cd hbf2gf; ./configure --prefix=$(PREFIX) --with-kpathsea-dir=$(PREFIX); $(MAKE) all)
+
+all: hbf2gf_build
+	$(MAKE) -C Bg5conv $@
+	$(MAKE) -C CEFconv $@
+	$(MAKE) -C SJISconv $@
+	$(MAKE) -C extconv $@
+	$(MAKE) -C pyhyphen $@
+	$(MAKE) -C thaiconv $@
+
+hbf2gf_install:
+	$(CHMOD) +x hbf2gf/mkinstalldirs
+	$(MAKE) -C hbf2gf install
+	$(RM) -fr $(TEXMF_DIR)/hbf2gf
+	$(CP) -R hbf2gf/cfg $(TEXMF_DIR)/hbf2gf
+
+install: hbf2gf_install
+	$(MAKE) -C Bg5conv $@
+	$(MAKE) -C CEFconv $@
+	$(MAKE) -C SJISconv $@
+	$(MAKE) -C extconv $@
+	$(MAKE) -C lisp $@
+	$(MAKE) -C pyhyphen $@
+	$(MAKE) -C thaiconv $@
+
+clean:
+	$(MAKE) -C Bg5conv $@
+	$(MAKE) -C CEFconv $@
+	$(MAKE) -C SJISconv $@
+	$(MAKE) -C extconv $@
+	$(MAKE) -C hbf2gf distclean
+	$(MAKE) -C pyhyphen $@
+	$(MAKE) -C thaiconv $@
--- utils/Bg5conv/Makefile.orig	Thu Jan  1 08:00:00 1970
+++ utils/Bg5conv/Makefile	Sat Feb 20 07:17:29 1999
@@ -0,0 +1,14 @@
+bg5conv:
+	$(CC) $(CFLAGS) -o $@ bg5conv.c
+
+build: bg5conv
+
+all: build
+
+install: all
+	$(INSTALL_PROGRAM) bg5conv $(PREFIX)/bin
+	$(INSTALL_SCRIPT) bg5latex $(PREFIX)/bin
+	$(INSTALL_MAN) bg5conv.1 $(PREFIX)/man/man1
+
+clean:
+	$(RM) bg5conv
--- utils/CEFconv/Makefile.orig	Thu Jan  1 08:00:00 1970
+++ utils/CEFconv/Makefile	Sat Feb 20 07:26:46 1999
@@ -0,0 +1,20 @@
+cef5conv:
+	$(CC) $(CFLAGS) -o $@ cef5conv.c
+
+cefconv:
+	$(CC) $(CFLAGS) -o $@ cefconv.c
+
+cefsconv:
+	$(CC) $(CFLAGS) -o $@ cefsconv.c
+
+build: cef5conv cefconv cefsconv
+
+all: build
+
+install: all
+	$(INSTALL_PROGRAM) *conv $(PREFIX)/bin
+	$(INSTALL_SCRIPT) *latex $(PREFIX)/bin
+	$(INSTALL_MAN) *.1 $(PREFIX)/man/man1
+
+clean:
+	$(RM) *conv
--- utils/SJISconv/Makefile.orig	Thu Jan  1 08:00:00 1970
+++ utils/SJISconv/Makefile	Sat Feb 20 07:29:10 1999
@@ -0,0 +1,14 @@
+sjisconv:
+	$(CC) $(CFLAGS) -o $@ sjisconv.c
+
+build: sjisconv
+
+all: build
+
+install: all
+	$(INSTALL_PROGRAM) sjisconv $(PREFIX)/bin
+	$(INSTALL_SCRIPT) sjislatex $(PREFIX)/bin
+	$(INSTALL_MAN) sjisconv.1 $(PREFIX)/man/man1
+
+clean:
+	$(RM) sjisconv
--- utils/extconv/Makefile.orig	Wed Sep  8 00:22:41 1999
+++ utils/extconv/Makefile	Mon Sep  6 15:12:14 1999
@@ -0,0 +1,15 @@
+extconv:
+	$(CC) $(CFLAGS) -o $@ extconv.c
+
+build: extconv
+
+all: build
+
+install: all
+	$(INSTALL_PROGRAM) extconv $(PREFIX)/bin
+	$(INSTALL_MAN) extconv.1 $(PREFIX)/man/man1
+	$(INSTALL_SCRIPT) bg5+latex $(PREFIX)/bin
+	$(INSTALL_SCRIPT) gbklatex $(PREFIX)/bin
+
+clean:
+	$(RM) extconv
--- utils/hbf2gf/Makefile.in.orig	Sun Mar  7 16:10:45 1999
+++ utils/hbf2gf/Makefile.in	Sun Mar  7 16:11:00 1999
@@ -65,7 +65,7 @@
 	$(MKINSTALLDIRS) $(bindir) $(mandir)/man1
 	for P in $(PROGRAMS) ; do \
           $(INSTALL_PROGRAM) $$P $(bindir)/$$P ; \
-          $(INSTALL_DATA) $(srcdir)/$$P.1 $(mandir)/man1 ; \
+          $(INSTALL_DATA) -c $(srcdir)/$$P.1 $(mandir)/man1 ; \
         done
 
 uninstall:
--- utils/lisp/Makefile.orig	Thu Jan  1 08:00:00 1970
+++ utils/lisp/Makefile	Sat Feb 27 17:52:17 1999
@@ -0,0 +1,3 @@
+install:
+	(mkdir -p ${PREFIX}/share/emacs/site-lisp/CJK); && \
+	($(CP) -R [a-z]* ${PREFIX}/share/emacs/site-lisp/CJK)
--- utils/pyhyphen/Makefile.orig	Mon Jan 10 15:07:11 2000
+++ utils/pyhyphen/Makefile	Mon Jan 10 15:15:06 2000
@@ -0,0 +1,14 @@
+pinyin:
+	$(CC) $(CFLAGS) -o $@ pinyin.c
+
+build: pinyin
+
+all: build
+
+install: all
+	$(INSTALL_PROGRAM) pinyin $(PREFIX)/bin
+	$(INSTALL_DATA) pinyin.ldf $(PREFIX)/share/texmf/tex/generic/babel
+	$(INSTALL_DATA) pyhyph.tex $(PREFIX)/share/texmf/tex/generic/hyphen
+
+clean:
+	$(RM) pinyin
--- utils/thaiconv/Makefile.orig	Sun Dec 13 12:00:00 1998
+++ utils/thaiconv/Makefile	Sat Feb 20 07:39:03 1999
@@ -14,3 +14,14 @@
 	c2cweb -b "The thaiconv program" -l -v thaiconv.c
 	$(CWEAVE) +ai thaiconv.cw
 	$(TEX) thaiconv
+
+build: thaiconv
+
+all: build
+
+install: all
+	$(INSTALL_PROGRAM) thaiconv $(PREFIX)/bin
+	$(INSTALL_MAN) thaiconv.1 $(PREFIX)/man/man1
+
+clean:
+	$(RM) thaiconv