summaryrefslogtreecommitdiff
path: root/print/lprps/files/patch-Makefile
blob: 1b474346f1b20b217e1de75a7ac9bee191f21e58 (plain) (blame)
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
--- Makefile.orig	1993-02-22 21:45:50.000000000 +0900
+++ Makefile	2013-04-27 22:53:50.000000000 +0900
@@ -3,21 +3,21 @@
 # Define IIg to enable a workaround for a bug in the serial
 # driver of the Laserwriter IIf and IIg; this requires the POSIX
 # tcdrain() function.  (I haven't tested this personally.)
-DEFINES=-DA4 #-DIIg
-PREFIX=/usr/local
+DEFINES=
 # Where to install public executables.
 BINDIR=$(PREFIX)/bin
 # Where to install private executables.
-LIBDIR=$(PREFIX)/lib
+LIBDIR=$(PREFIX)/libexec
 # Define REV_COMMAND to be empty if documents don't need to
 # be printed in reverse order.
-REV_COMMAND=$(BINDIR)/psrev |
+#REV_COMMAND=$(BINDIR)/psrev |
+REV_COMMAND=
 # Where to install the filter for text files.
 TEXT_FILTER=$(LIBDIR)/psif-text
 # Where to install the filter for PostScript files.
 PS_FILTER=$(LIBDIR)/psif-ps
 # Where to install PostScript banner printing code
-BANNER=$(LIBDIR)/banner.ps
+BANNER=$(PREFIX)/share/misc/banner.ps
 # Filter to convert text to PostScript.  You can use your own instead.
 # It must be able to read from standard input.
 TEXT_TO_PS=$(BINDIR)/textps
@@ -29,15 +29,15 @@
 MAN8EXT=8
 MAN8DIR=$(MANROOT)/man$(MAN8EXT)
 
-CC=cc
-CFLAGS=-O $(DEFINES)
+CC?=cc
+CFLAGS+=-I${LOCALBASE}/include $(DEFINES)
 #CFLAGS=-g -Bstatic $(DEFINES)
 # Command for installing programs.
-INSTALL_PROGRAM=install
+INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM}
 # Command for installing man pages.
-INSTALL_DATA=install -m 0444
+INSTALL_DATA=${BSD_INSTALL_DATA}
 
-SHELL=/bin/sh
+SHELL=${SH}
 # Uncomment the next line for Ultrix.
 #SHELL=/bin/sh5
 
@@ -89,7 +89,7 @@
 	-DPS_FILTER=\"$(PS_FILTER)\" -o $@ psif.c
 
 textps: textps.c
-	$(CC) $(CFLAGS) -o $@ textps.c
+	$(CC) $(CFLAGS) -o $@ textps.c -lpaper -L${LOCALBASE}/lib
 
 psrev: psrev.c
 	$(CC) $(CFLAGS) -o $@ psrev.c