summaryrefslogtreecommitdiffstats
path: root/x11-fonts/xmbdfed/files/patch-aa
blob: 751e686ceb6989e0008bc7c6c51d2edf82ae0c11 (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

$FreeBSD$

--- Makefile.orig	Tue Feb 17 16:24:06 2004
+++ Makefile	Thu Mar 18 18:47:04 2004
@@ -22,8 +22,8 @@
 #
 # $Id: Makefile,v 1.13 2004/02/17 15:24:06 mleisher Exp $
 #
-CC = gcc
-CFLAGS = -g -Wall
+#CC = gcc
+#CFLAGS = -g -Wall
 
 OTHER = README CHANGES COPYRIGHTS Makefile Imakefile.lesstif Project.tmpl \
         xmbdfedrc xmbdfed.man
@@ -46,17 +46,17 @@
 # Uncomment these if you have the FreeType library and want to use it to
 # import OpenType fonts.
 #
-#FTYPE_INCS = -I/usr/local/include
-#FTYPE_LIBS = -L/usr/local/lib -lfreetype
-#FTYPE_DEFS = -DHAVE_FREETYPE
+FTYPE_INCS!= freetype-config --cflags
+FTYPE_LIBS!= freetype-config --libs
+FTYPE_DEFS = -DHAVE_FREETYPE
 
 #
 # Uncomment these if you have the hbf.h and hbf.c files in the current
 # directory and the patch has been applied.
 #
-#HBF_HDRS = hbf.h
-#HBF_OBJS = hbf.o
-#HBF_DEFS = -DHAVE_HBF
+HBF_HDRS = hbf.h
+HBF_OBJS = hbf.o
+HBF_DEFS = -DHAVE_HBF
 
 #
 # Specify the various defines needed for HBF fonts.  If you do not have GNU
@@ -64,7 +64,7 @@
 # files with a ".gz" extension.  If you don't care about HBF fonts, just
 # comment this line out.
 #
-HBFDEFS = -Dunix -DIN_MEMORY -DGUNZIP_CMD="\"/usr/local/bin/gunzip -c\""
+HBFDEFS = -Dunix -DIN_MEMORY -DGUNZIP_CMD="\"/usr/bin/gunzip -c\""
 
 #
 # Set the defines used for all files except the HBF support.
@@ -82,9 +82,9 @@
 #
 # Uncomment these for Solaris.
 #
-INCS = -I/usr/openwin/include -I/usr/dt/include $(FTYPE_INCS)
-LIBS = -R/usr/openwin/lib -R/usr/dt/lib -L/usr/dt/lib -lXm \
-       -L/usr/openwin/lib -lXmu -lXt -lXext -lX11 $(FTYPE_LIBS)
+#INCS = -I/usr/openwin/include -I/usr/dt/include $(FTYPE_INCS)
+#LIBS = -R/usr/openwin/lib -R/usr/dt/lib -L/usr/dt/lib -lXm \
+#       -L/usr/openwin/lib -lXmu -lXt -lXext -lX11 $(FTYPE_LIBS)
 
 #
 # Uncomment these for Linux.
@@ -129,7 +129,15 @@
 #LIBS = -L/usr/Motif-1.2/lib32 -lXm \
 #       -L/usr/lib/X11 -lXmu -lXt -lXext -lX11 -lSM -lICE $(FTYPE_LIBS)
 
+INCS = -I${LOCALBASE}/include ${FTYPE_INCS}
+LIBS = -L${LOCALBASE}/lib ${MOTIFLIB} \
+       -lXpm -lXmu -lXt -lX11 -lSM -lICE -lXext ${FTYPE_LIBS}
+
 all: xmbdfed
+
+install:
+	${BSD_INSTALL_PROGRAM} xmbdfed ${PREFIX}/bin/xmbdfed
+	${BSD_INSTALL_MAN} xmbdfed.man ${PREFIX}/man/man1/xmbdfed.1
 
 xmbdfed: $(OBJS)
 	$(PURIFY) $(CC) $(STATIC) $(CFLAGS) -o xmbdfed $(OBJS) $(LIBS)
OpenPOWER on IntegriCloud