summaryrefslogtreecommitdiff
path: root/mail/mush/patches/patch-ao
blob: 904d22e6f7181334d9f0f43ce1493da75134ce38 (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-ao,v 1.2 2005/05/29 05:57:20 minskim Exp $

--- makefile.linux.orig	2005-05-29 00:51:20.300151928 -0500
+++ makefile.linux
@@ -30,9 +30,9 @@ DEBUG=-O6 
 # apparently has the ncurses library installed as -lcurses, whereas the latter
 # has a separate -lncurses.  RedHat for 5.0 recommends dropping -ltermcap
 # and using only -lcurses.  Set CFLAGS and LIBS here as appropriate.
-CFLAGS= $(DEBUG) -DPOSIX -DSIGRET=void -fwritable-strings -DCURSES -DDEFINE_CURSES_SGTTY -I/usr/include/ncurses
+CFLAGS+= -DPOSIX -DSIGRET=void -fwritable-strings -DCURSES -DDEFINE_CURSES_SGTTY -I/usr/include/ncurses
 #CFLAGS= $(DEBUG) -DPOSIX -DSIGRET=void -fwritable-strings -DCURSES -DDEFINE_CURSES_SGTTY -DNCURSES
-LDFLAGS= $(DEBUG)
+#LDFLAGS= $(DEBUG)
 LIBS= -lncurses -ltermcap
 #LIBS= -lcurses -ltermcap
 #LIBS= -lcurses
@@ -50,24 +50,20 @@ $(OBJS2): $(HDRS1) $(HDRS2) $(HDRS3)
 loop.o: version.h
 
 #PREFIX= /usr/packages/mush
-PREFIX= /usr
+#PREFIX= /usr
 BINDIR= $(PREFIX)/bin
-LIBDIR= $(PREFIX)/lib
-MRCDIR= $(PREFIX)/lib
+LIBDIR= $(PREFIX)/share/misc
+MRCDIR= $(PREFIX)/share/misc
 MANDIR= $(PREFIX)/man/man1
 MANEXT= 1
 
 install: mush
 	-mkdir $(PREFIX) $(PREFIX)/{bin,lib,man,man/man1}
-	cp mush $(BINDIR)
-	strip $(BINDIR)/mush
-	chmod 0755 $(BINDIR)/mush
-	cp mush.1 $(MANDIR)/mush.$(MANEXT)
-	chmod 0644 $(MANDIR)/mush.$(MANEXT)
-	cp cmd_help $(LIBDIR)
-	chmod 0644 $(LIBDIR)/cmd_help
-	cp Mushrc $(MRCDIR)/Mushrc
-	chmod 0644 $(MRCDIR)/Mushrc
+	$(BSD_INSTALL_PROGRAM) mush $(BINDIR)
+	$(BSD_INSTALL_MAN) mush.1 $(MANDIR)/mush.$(MANEXT)
+	$(BSD_INSTALL_DATA_DIR) $(LIBDIR)
+	$(BSD_INSTALL_DATA) cmd_help $(LIBDIR)
+	$(BSD_INSTALL_DATA) Mushrc $(MRCDIR)/Mushrc
 
 clean:
 	rm -f *.o *~ core TAGS tags a.out mush