summaryrefslogtreecommitdiff
path: root/math/xlispstat/patches/patch-ac
blob: 08739a7c6f40b1e47ca902eeb46e60a27c7119a9 (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-ac,v 1.5 2000/10/15 02:23:56 jlam Exp $

--- Makefile.in.orig	Tue Feb  1 18:22:53 2000
+++ Makefile.in
@@ -6,7 +6,8 @@
 ##############################################################################
 ##############################################################################
 #
-# XLSLIB -- directory for xlisp executable, startup, example, and help files
+# XLSLIB -- directory for xlisp example, and help files
+# XLSLIBEXEC -- directory for xlisp executable and startup files
 # BINDIR -- directory for xlispstat shell script
 #
 # For the remaining parameters, if your machine has a subdirectory in the 
@@ -34,7 +35,8 @@
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 
-XLSLIB=${prefix}/lib/xlispstat
+XLSLIB=${prefix}/share/xlispstat
+XLSLIBEXEC=${prefix}/libexec/xlispstat
 BINDIR=${exec_prefix}/bin
 
 GRAPHSYS = @GRAPHSYS@
@@ -67,11 +69,11 @@
 .lsp.fsl:
 	echo "(compile-file \"$<\") (exit)" | ./xlisp
 
-CFLAGS = -D${GRAPHSYS} ${UCFLAGS} ${X11INCDIR_FLAG}
+CFLAGS += -D${GRAPHSYS} ${UCFLAGS} ${X11INCDIR_FLAG} -Dunix=1
 
 LIBS = ${EXTRALIBS} -lm
 
-LDFLAGS = ${ULDFLAGS}
+LDFLAGS += ${ULDFLAGS}
 
 OSOBJS = xsdynload.o xssystem.o unixprim.o
 
@@ -118,7 +120,7 @@
 	compiler/assemble.fsl compiler/cmpfront.fsl
 
 xlispstat: setup.shell xlisp.wks
-	./setup.shell xlispstat ${XLSLIB}
+	./setup.shell xlispstat ${XLSLIB} ${XLSLIBEXEC}
 	chmod a+x xlispstat
 
 xlisp.wks: xlisp ${CMPFSLFILES} ${FSLFILES} ${AUTOFSLFILES}
@@ -142,10 +144,10 @@
 
 installexecs: xlispstat xlisp installdirs
 	-cp xlispstat ${BINDIR}/xlispstat
-	-cp xlisp ${XLSLIB}
+	-cp xlisp ${XLSLIBEXEC}
 
 installlsp: xlisp.wks xlisp.hlp ${AUTOFSLFILES} ${CMPFSLFILES} installdirs
-	-cp xlisp.wks ${XLSLIB}
+	-cp xlisp.wks ${XLSLIBEXEC}
 	-cp xlisp.hlp ${XLSLIB}
 	-cp Autoload/_autoidx.lsp Autoload/*.fsl ${XLSLIB}/Autoload
 	-cp Data/*.lsp ${XLSLIB}/Data
@@ -155,6 +157,7 @@
 installdirs:
 	-mkdir -p ${BINDIR}
 	-mkdir -p ${XLSLIB}
+	-mkdir -p ${XLSLIBEXEC}
 	-mkdir ${XLSLIB}/Data
 	-mkdir ${XLSLIB}/Examples
 	-mkdir ${XLSLIB}/Autoload