summaryrefslogtreecommitdiff
path: root/time/pcal/patches/patch-aa
blob: 6fae85049f82ed44549e22d1899cc126544e5d2a (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
$NetBSD: patch-aa,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $

--- Makefile.orig	Thu Feb 10 01:06:23 2000
+++ Makefile	Thu Dec 21 09:40:35 2000
@@ -21,8 +21,8 @@
 
 # Set the configuration variables below to taste.
 
-PCALINIT_CC = /bin/cc			# native compiler
-CC	    = /bin/cc			# cross-compiler (if target != host)
+PCALINIT_CC = ${CC}			# native compiler
+CC	    = ${HOST_CC}		# cross-compiler (if target != host)
 
 # Set COMPRESS to your preferred compression utility (compress, gzip, etc.),
 # Z to the file suffix that it generates (.Z, .gz, etc.), and UUC to the file
@@ -58,9 +58,9 @@
 # PACK	= pack
 
 # directories for installing executable and man page(s)
-BINDIR	= /usr/local/bin
-MANDIR	= /usr/man/man1
-CATDIR	= /usr/man/cat1
+BINDIR	= ${PREFIX}/bin
+MANDIR	= ${PREFIX}/man/man1
+CATDIR	= ${PREFIX}/cat1
 
 OBJECTS = pcal.o exprpars.o moonphas.o pcalutil.o readfile.o writefil.o
 
@@ -112,6 +112,10 @@
 	$(D_TEXT) $(D_LINK) $(D_ALINK) $(D_VLINK) \
 	$(D_HOLIDAY_PRE) $(D_HOLIDAY_POST) $(D_BLANK_STYLE) \
 	$(D_SEARCH_PCAL_DIR)
+
+.if defined(PAPERSIZE) && $(PAPERSIZE) == A4 # default Letter (OK?)
+COPTS += -DA4PAPER
+.endif
 
 $(PCAL):	$(OBJECTS)
 	$(CC) $(LDFLAGS) -o $(PCAL) $(OBJECTS) -lm