summaryrefslogtreecommitdiff
path: root/textproc/stardic/patches/patch-aa
blob: bd30359a00236d3f47b79b6b4ca71b80caceb658 (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
$NetBSD: patch-aa,v 1.1.1.1 2002/06/15 09:21:43 shell Exp $

--- makefile.orig	Sat Jan 29 12:07:34 2000
+++ makefile
@@ -1,15 +1,16 @@
 TRANSOBJ= trans.o image.o regdef.o
+TRANSDIR= $(PREFIX)/share/stardic
 
 # modify those variables for yourself
 
 # for linux
-LDFLAGS= -L/usr/X11/lib -lXm -lXt -lXext -lX11
+LDFLAGS+= -L/usr/X11/lib -lXm -lXt -lXext -lX11
 
 # for solaris
 # LDFLAGS= -lXm -lXt -lXext -lX11
 
 # for linux
-CPPFLAGS= -I/usr/X11/include
+CPPFLAGS+= -I/usr/X11/include -DTRANSHOME=\"$(TRANSDIR)\"
 
 # for solaris
 #CPPFLAGS= -I/usr/dt/include -I/usr/openwin/include
@@ -18,14 +19,22 @@
 #CFLAGS=  +w -DNDEBUG
 
 # for g++
-CFLAGS=  -Wall -DNDEBUG
+CFLAGS+=  -Wall -DNDEBUG
 
-CC= g++
+CC= $(CXX)
 #CC= CC
 
 .KEEP_STATE:
-stardic:$(TRANSOBJ)
+all: $(TRANSOBJ)
 	$(LINK.c) -o stardic $(TRANSOBJ)
+	gzip hzfont/*.pcf
 
 .cc.o:
 	$(COMPILE.c) $<
+
+install:
+	$(BSD_INSTALL_PROGRAM) stardic $(PREFIX)/bin
+	$(BSD_INSTALL_DATA_DIR) $(TRANSDIR)
+	$(BSD_INSTALL_DATA) transdic yblib *.gif *.xbm $(TRANSDIR)
+	$(BSD_INSTALL_DATA_DIR) $(TRANSDIR)/hzfont
+	$(BSD_INSTALL_DATA) hzfont/fonts.dir hzfont/*.pcf.gz $(TRANSDIR)/hzfont