summaryrefslogtreecommitdiff
path: root/editors/jove/patches/patch-aa
blob: 99359f54a554239a5aaf349cdb998498c0117e31 (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
$NetBSD: patch-aa,v 1.2 2000/01/19 16:32:13 agc Exp $

--- Makefile.orig	Tue Mar 19 04:44:33 1996
+++ Makefile	Wed Jan 19 16:25:36 2000
@@ -27,16 +27,20 @@
 # LIBDIR and SHAREDIR.  All others must already exist.
 
 SHELL = /bin/sh
-TMPDIR = /usr/tmp
-RECDIR = /usr/preserve
+TMPDIR = /var/tmp
+RECDIR = /var/preserve
 
+.if defined(LOCALBASE)
+JOVEHOME = $(LOCALBASE)
+.else
 JOVEHOME = /usr/local
-SHAREDIR = $(JOVEHOME)/lib/jove
+.endif
+SHAREDIR = $(JOVEHOME)/share/jove
 LIBDIR = $(JOVEHOME)/lib/jove
 BINDIR = $(JOVEHOME)/bin
 MANDIR = $(JOVEHOME)/man/man$(MANEXT)
 MANEXT = 1
-DFLTSHELL = /bin/csh
+DFLTSHELL = /bin/sh
 
 # The install commands of BSD and System V differ in unpleasant ways:
 # -c: copy (BSD); -c dir: destination directory (SysV)
@@ -47,15 +51,15 @@
 # "cp" will work reasonably well, but be aware that any links continue
 # referencing the old file with new contents.
 
-INSTALLFLAGS = # -g bin -o root
+INSTALLFLAGS = -g wheel -o root
 
 # to install executable files
-XINSTALL=cp
-#XINSTALL=/usr/ucb/install $(INSTALLFLAGS) -c -m 755 # -s
+#XINSTALL=cp
+XINSTALL=${BSD_INSTALL_PROGRAM}
 
 # to install text files
-TINSTALL=cp
-#TINSTALL=/usr/ucb/install $(INSTALLFLAGS) -c -m 644
+#TINSTALL=cp
+TINSTALL=${BSD_INSTALL_DATA}
 
 # These should all just be right if the above ones are.
 # You will confuse JOVE if you move anything from LIBDIR or SHAREDIR.
@@ -79,7 +83,7 @@
 # compiler, adding -Xa -v will increase compiler checking.
 # On DEC OSF/1, -std1 -O
 
-OPTFLAGS = -O
+OPTFLAGS = -O2
 
 # For making dependencies under BSD systems
 DEPENDFLAG = -M
@@ -163,7 +167,7 @@
 #
 # You can just say 'make SYSDEFS=-Dwhatever' on these systems.
 
-SYSDEFS =
+SYSDEFS = -DBSDPOSIX
 
 # for SCO Xenix, set
 #	MEMFLAGS = -Mle
@@ -179,6 +183,7 @@
 # CC = /opt/SUNWspro/bin/cc
 # For DG AViiON, expect compile errors unless you use the GNU C compiler:
 # CC=gcc
+CC= gcc
 
 # Load invocation of cc.
 # LDCC = purify $(CC)