summaryrefslogtreecommitdiff
path: root/misc/nxtvepg/patches/patch-aa
blob: 2b6c8ea2e101500e3f74779e4d7a52d6ad2f6091 (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
$NetBSD: patch-aa,v 1.6 2001/09/09 13:00:14 magick Exp $

--- Makefile.orig	Fri Sep  7 22:31:54 2001
+++ Makefile
@@ -33,36 +33,42 @@
 else
 
 ROOT    =
-prefix  = /usr/local
+prefix  = ${PREFIX}
 exec_prefix = ${prefix}
 bindir  = $(ROOT)${exec_prefix}/bin
 mandir  = $(ROOT)${prefix}/man/man1
 
 # if you have perl set the path here, else just leave it alone
-PERL    = /usr/bin/perl
+PERL    = ${LOCALBASE}/bin/perl
 
-LDLIBS  = -ltk8.3 -ltcl8.3 -L/usr/X11R6/lib -lX11 -lXmu -lm -ldl
+#LDLIBS  = -ltk8.3 -ltcl8.3 -L/usr/X11R6/lib -lX11 -lXmu -lm -ldl
+LDLIBS  =  -ltk83 -ltcl83 -lX11 -lXmu -lm
 # use static libraries for debugging only
 #LDLIBS  = dbglib/libtk8.3.a dbglib/libtcl8.3.a -lX11 -lm -ldl -L/usr/X11R6/lib
 
-INCS   += -I. -I/usr/X11R6/include
+#INCS   += -I. -I/usr/X11R6/include
+INCS   += -I. -I${X11BASE}/include
 # path to Tcl/Tk headers, if not properly installed
 #INCS   += -I/usr/local/tcl/tcl8.0/generic -I/usr/local/tcl/tk8.0/generic
 
 # path to Tcl/Tk script library (Tk is usually in X11/lib/tk#.#)
-DEFS   += -DTK_LIBRARY_PATH=\"/usr/lib/tk8.3\"
-DEFS   += -DTCL_LIBRARY_PATH=\"/usr/lib/tcl8.3\"
+#DEFS   += -DTK_LIBRARY_PATH=\"/usr/lib/tk8.3\"
+#DEFS   += -DTCL_LIBRARY_PATH=\"/usr/lib/tcl8.3\"
+DEFS   += -DTK_LIBRARY_PATH=\"$(LOCALBASE)/lib/tk8.3\"
+DEFS   += -DTCL_LIBRARY_PATH=\"$(LOCALBASE)/lib/tcl8.3\"
 
 # path to the directory where the provider database files are kept
-DB_DIR  = /usr/tmp/nxtvdb
-DEFS   += -DEPG_DB_DIR=\"$(DB_DIR)\"
+#DB_DIR  = /usr/tmp/nxtvdb
+DB_DIR  = _PATH_TMP\"nxtvdb\"
+#DEFS   += -DEPG_DB_DIR=\"$(DB_DIR)\"
+DEFS   += -DEPG_DB_DIR=$(DB_DIR)
 INST_DB_DIR = $(ROOT)$(DB_DIR)
 
 #WARN    = -Wall -Wpointer-arith -Wnested-externs \
 #          -Werror -Wstrict-prototypes -Wmissing-prototypes
 WARN    = -Wall
 CC      = gcc
-CFLAGS  = -pipe $(WARN) $(INCS) $(DEFS) -O3
+CFLAGS  = -pipe $(WARN) $(INCS) $(DEFS)
 
 # ----- don't change anything below ------------------------------------------
 
@@ -87,11 +93,11 @@
 install: nxtvepg nxtvepg.1
 	test -d $(bindir) || mkdirhier $(bindir)
 	test -d $(mandir) || mkdirhier $(mandir)
-	test -d $(INST_DB_DIR) || mkdirhier $(INST_DB_DIR)
-	chmod 0777 $(INST_DB_DIR)
+#	test -d $(INST_DB_DIR) || mkdirhier $(INST_DB_DIR)
+#	chmod 0777 $(INST_DB_DIR)
 	install -c -m 0755 nxtvepg     $(bindir)
 	install -c -m 0644 nxtvepg.1   $(mandir)
-	rm -f $(mandir)/nxtvepg.1x
+#	rm -f $(mandir)/nxtvepg.1x
 
 ##%.o: %.c
 ##	$(CC) $(CFLAGS) -c *.c -o *.o