summaryrefslogtreecommitdiff
path: root/print/psutils/patches/patch-ah
blob: 05257cffb960de74e3752814f9a29fbf15467b0a (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
$NetBSD: patch-ah,v 1.3 2003/09/07 03:48:04 jschauma Exp $

--- Makefile.unix.orig	Tue Mar 11 23:52:59 1997
+++ Makefile.unix	Tue Jul 10 19:24:33 2001
@@ -25,21 +25,19 @@
 
 OS = UNIX
 
-BINDIR = /usr/local/bin
+BINDIR = $(PREFIX)/bin
 SCRIPTDIR = $(BINDIR)
-INCLUDEDIR = /usr/local/share/psutils
-PERL = /usr/local/bin/perl
+INCLUDEDIR = $(PREFIX)/share/psutils
+PERL = $(PERL5)
 
 BINMODE = 0755
 MANMODE = 0644
 CHMOD = chmod
-INSTALL = install -c -m $(BINMODE)
-INSTALLMAN = install -c -m $(MANMODE)
 MANEXT = 1
-MANDIR = /usr/local/share/man/man$(MANEXT)
+MANDIR = $(PREFIX)/man/man1
 
-CC = gcc
-CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX -O -Wall
+#CC = gcc
+CFLAGS += -DPAPER=\"$(PAPER)\" -DUNIX 
 
 BIN = psbook psselect pstops epsffit psnup \
 	psresize
@@ -222,27 +220,27 @@
 	-mkdir $(BINDIR)
 	@for i in $(BIN); do \
 		echo Installing $$i; \
-		$(INSTALL) $$i $(BINDIR); \
+		$(BSD_INSTALL_PROGRAM) $$i $(BINDIR); \
 	done
 
 install.script: $(PERLSCRIPTS) $(SHELLSCRIPTS)
 	-mkdir $(SCRIPTDIR)
 	@for i in $(PERLSCRIPTS) $(SHELLSCRIPTS); do \
 		echo Installing $$i; \
-		$(INSTALL) $$i $(SCRIPTDIR); \
+		$(BSD_INSTALL_SCRIPT) $$i $(SCRIPTDIR); \
 	done
 
 install.include: $(INCLUDES)
 	-mkdir $(INCLUDEDIR)
 	@for i in $(INCLUDES); do \
 		echo Installing $$i; \
-		$(INSTALLMAN) $$i $(INCLUDEDIR); \
+		$(BSD_INSTALL_DATA) $$i $(INCLUDEDIR); \
 	done
 
 install.man: $(MANPAGES)
 	-mkdir $(MANDIR)
 	@for i in $(MANPAGES); do \
 		echo Installing manual page for $$i; \
-		$(INSTALLMAN) $$i $(MANDIR)/$$i; \
+		$(BSD_INSTALL_MAN) $$i $(MANDIR)/$$i; \
 	done