freebsd-ports/print/pcal/files/patch-aa
Ying-Chieh Liao a6bd184328 add pcal
PostScript calendar program

PR:		28020
Submitted by:	Matthew West <mwest@uct.ac.za>
2001-08-06 13:13:44 +00:00

37 lines
1.1 KiB
Text

--- 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