summaryrefslogtreecommitdiff
path: root/print/mpage/patches/patch-aa
blob: f7103cda39e771e66460d8d10ebb3246410a0cbd (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-aa,v 1.3 2000/12/08 07:24:22 jlam Exp $

--- Makefile.orig	Tue Nov 25 18:16:06 1997
+++ Makefile
@@ -30,7 +30,6 @@
 # Set this to an ANSI compatible C compiler (preferably gcc)
 # See also system specific settings below
 #CC=cc
-CC=gcc
 
 ############################################################################
 #
@@ -55,9 +54,8 @@
 SPOOL_TYPE=BSD_SPOOLER
 
 # PREFIX=e:/usr		# OS/2 type
-PREFIX=/usr/local
 BINDIR=$(PREFIX)/bin
-LIBDIR=$(PREFIX)/lib
+LIBDIR=$(PREFIX)/share
 MANDIR=$(PREFIX)/man/man1
 
 #
@@ -110,8 +108,8 @@
 # Choose one of the following CFLAGS/CC definitions:
 # If you are using gcc, you probably don't need to change anything here.
 
-# Linux:
-CFLAGS = -O2 -s $(DEFS) -Wall
+# Linux or BSD:
+CFLAGS += -O2 -s $(DEFS) -Wall
 
 # AIX (xlC on aix 4):
 #CFLAGS = -O2 -s $(DEFS)
@@ -168,10 +166,10 @@
 
 
 #
-# add your proper install stuff
+# BSD specific install stuff
 #
 install:
-	cp mpage$(E) $(BINDIR)
-	cp mpage.1 $(MANDIR)
+	$(BSD_INSTALL_PROGRAM) mpage$(E) $(BINDIR)
+	$(BSD_INSTALL_MAN) mpage.1 $(MANDIR)
 	if [ ! -d $(LIBDIR)/mpage ] ; then mkdir $(LIBDIR)/mpage ; fi
-	-cp Encodings/* $(LIBDIR)/mpage
+	$(BSD_INSTALL_DATA) Encodings/* $(LIBDIR)/mpage