aboutsummaryrefslogtreecommitdiffstats
path: root/print/mpage/files/patch-aa
blob: 4e62db8c327cd09f213aea1de08af45b21a73721 (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
--- Makefile.orig   Thu Jan 24 20:12:59 2002
+++ Makefile    Sun Apr 14 03:46:23 2002
@@ -24,7 +24,6 @@
 # Set this to an ANSI compatible C compiler (preferably gcc)
 # See also system specific settings below
 #CC=cc
-CC=gcc
 
 ############################################################################
 #
@@ -50,7 +49,6 @@
 SPOOL_TYPE=BSD_SPOOLER
 
 # PREFIX=e:/usr        # OS/2 type
-PREFIX=/usr/local
 BINDIR=$(PREFIX)/bin
 LIBDIR=$(PREFIX)/share
 MANDIR=$(PREFIX)/man/man1
@@ -101,8 +99,11 @@
 # Choose one of the following CFLAGS/CC definitions:
 # If you are using gcc, you probably don't need to change anything here.
 
+# FreeBSD:
+CFLAGS+=   -s $(DEFS)
+
 # Linux:
-CFLAGS = -O2 -s $(DEFS) -Wall
+#CFLAGS = -O2 -s $(DEFS) -Wall
 
 # AIX (xlC on aix 4):
 #CFLAGS = -O2 -s $(DEFS)
@@ -170,7 +171,6 @@
    if [ ! -d $(LIBDIR)/mpage ] ; then mkdir -p $(LIBDIR)/mpage ; fi
    if [ ! -d $(BINDIR) ] ; then mkdir -p $(BINDIR) ; fi
    if [ ! -d $(MANDIR) ] ; then mkdir -p $(MANDIR) ; fi
-   cp mpage$(E) $(BINDIR)
-   cp mpage.1 $(MANDIR)
-   -cp Encodings/* $(LIBDIR)/mpage
-   -chmod 644 $(LIBDIR)/mpage/*
+   $(BSD_INSTALL_PROGRAM) mpage$(E) $(BINDIR)
+   $(BSD_INSTALL_MAN) mpage.1 $(MANDIR)
+   $(BSD_INSTALL_DATA) Encodings/* $(LIBDIR)/mpage