summaryrefslogtreecommitdiff
path: root/misc/dialog/patches/patch-aa
blob: af0ea832a5a917e11c504625595ab19313b0af6c (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
$NetBSD: patch-aa,v 1.8 2001/06/19 15:53:11 jlam Exp $

--- Makefile.orig	Thu Jan  9 01:19:34 1997
+++ Makefile
@@ -17,20 +17,20 @@
 # can be disabled to make dialog a bit smaller (could be done for more things)
 HAVE_GUAGE=true
 
-BINDIR = /usr/bin
-MANDIR = /usr/man/man1/
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
 
-CC = gcc
-CPP = gcc -E
-OPTIM = -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe
+#CC = gcc
+CPP = $(CC) -E
+#OPTIM = -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe
 #OPTIM = -O -Wall -Wstrict-prototypes -g -pipe
 
 # end of the configuration part
 #----------------------------------------------------------------------------
 # do not edit below this line
 
-CFLAGS = $(OPTIM) -DLOCALE -DVERSION=\"0.6z\"
-LDFLAGS = -L .
+CFLAGS += $(OPTIM) -DLOCALE -DVERSION=\"0.6z\"
+LDFLAGS += -L .
 LDLIBS = -ldialog
 
 OBJS = checklist.o inputbox.o menubox.o msgbox.o \
@@ -42,7 +42,7 @@
 OBJS+=mouse.o
 endif
 ifeq ($(HAVE_NCURSES), true)
-CFLAGS+=-DHAVE_NCURSES -I/usr/include/ncurses
+CFLAGS+=-DHAVE_NCURSES
 LDLIBS+=-lncurses
 endif
 ifeq ($(HAVE_RC_FILE), true)
@@ -59,7 +59,7 @@
 all: libdialog.a dialog
 
 libdialog.a: $(OBJS)
-	ar rcs libdialog.a $(OBJS)
+	ar rc libdialog.a $(OBJS)
 
 dialog: dialog.o
 
@@ -70,7 +70,7 @@
 include .depend
 
 install: dialog libdialog.a
-	install -s dialog $(BINDIR)
+	${BSD_INSTALL_PROGRAM} dialog $(BINDIR)
 	cp dialog.man dialog.1
 ifeq ($(HAVE_RC_FILE),false)
 	mv dialog.1 dialog.in
@@ -82,7 +82,7 @@
 endif
 	mv dialog.1 dialog.in
 	sed -e "/COMMENTSTART/,/COMMENTEND/d" dialog.in >dialog.1
-	install -m 644 dialog.1 $(MANDIR)
+	${BSD_INSTALL_MAN} dialog.1 $(MANDIR)
 #	install -m 644 libdialog.a /usr/lib/
 
 depend: