blob: a8f045e9ce9eed4c7e1e4415bb6cce6f93fb127f (
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
|
$NetBSD: patch-aa,v 1.4 2014/06/01 16:35:35 wiz Exp $
--- Makefile.orig 1995-12-16 20:00:46.000000000 +0000
+++ Makefile
@@ -2,13 +2,13 @@
# Kau Chauo Chinese Fanti Ming Fonts Version 1.05 For FreeBSD
#
# All fonts source is contributed by Kau Chauo Business CO.
-# Converted by Chih-Hao Tsai & Pa on Taiwan
+# Converted by Chih-Hao Tsai & PA on Taiwan
#
-# maintainer: Pa ( Pa@FreeBSD.ee.ntu.edu.tw )
+# maintainer: PA ( PA@FreeBSD.ee.ntu.edu.tw )
#
-CFONTDIR=/usr/X11R6/lib/X11/fonts/chinese
-EFONTDIR=/usr/X11R6/lib/X11/fonts/misc
+CFONTDIR=${PREFIX}/share/fonts/X11/local
+EFONTDIR=${PREFIX}/share/fonts/X11/local
FONTS =kc24f.pcf.gz kc15f.pcf.gz kc8x15.pcf.gz kc12x24.pcf.gz
PROGS =kc24f kc15f kc8x15 kc12x24 kca2et
OBJS =tran.o kc24f.o kc15f.o kc8x15.o kc12x24.o kca2et.o
@@ -22,16 +22,20 @@ kc15f.pcf.gz: kc15f
./kc15f | bdftopcf | gzip - > kc15f.pcf.gz
kc8x15.pcf.gz: kca2et kc8x15
./kca2et kctext16.f00 ascfont.15 256 16 15
- ./kc8x15 | bdftopcf | gzip - > kc8x15.pcf.gz
+ ./kc8x15 > kc8x15.bdf
+ patch < kc8x15.diff
+ bdftopcf kc8x15.bdf | gzip - > kc8x15.pcf.gz
kc12x24.pcf.gz: kca2et kc12x24
./kca2et kctext24.f00 ascfont.24 256 48 48
- ./kc12x24 | bdftopcf | gzip - > kc12x24.pcf.gz
+ ./kc12x24 > kc12x24.bdf
+ patch < kc12x24.diff
+ bdftopcf kc12x24.bdf | gzip - > kc12x24.pcf.gz
kc24f: tran.o kc24f.o
$(CC) $(CFLAGS) tran.o kc24f.o -o $@
kc15f: tran.o kc15f.o
$(CC) $(CFLAGS) tran.o kc15f.o -o $@
-kc8x15: kc8x15.o
+kc8x15: tran.o kc8x15.o
$(CC) $(CFLAGS) tran.o kc8x15.o -o $@
kc12x24: kc12x24.o
$(CC) $(CFLAGS) kc12x24.o -o $@
@@ -39,11 +43,10 @@ kca2et: kca2et.o
$(CC) $(CFLAGS) kca2et.o -o $@
install:
- if [ ! -d $(CFONTDIR) ]; then mkdir $(CFONTDIR); fi
- cp kc*f.pcf.gz $(CFONTDIR)
- cp kc*x*.pcf.gz $(EFONTDIR)
- mkfontdir $(CFONTDIR)
- mkfontdir $(EFONTDIR)
+ if [ ! -d ${DESTDIR}$(CFONTDIR) ]; then mkdir ${DESTDIR}$(CFONTDIR); fi
+ ${BSD_INSTALL_DATA} kc*f.pcf.gz ${DESTDIR}$(CFONTDIR)
+ ${BSD_INSTALL_DATA} kc*x*.pcf.gz ${DESTDIR}$(EFONTDIR)
+ ${BSD_INSTALL_DATA} fonts.alias ${DESTDIR}$(CFONTDIR)
clean:
rm -f kc*.pcf.gz ascfont.* *.o *~ $(PROGS)
|