freebsd-ports/print/lprps/files/patch-Makefile
Hiroki Sato 03156fbc9e Add libpaper support to print/a2ps-*[1], print/c2ps-*, print/lprps-*,
graphics/jpeg2ps-*, and merge the papersize-suffixed versions into
single ones respectively as print/psutils did.

Approved by:	dinoex (maintainer) [1]
2013-04-27 16:00:26 +00:00

59 lines
1.8 KiB
Text

--- Makefile.orig 1993-02-22 21:45:50.000000000 +0900
+++ Makefile 2013-04-27 22:53:50.000000000 +0900
@@ -3,21 +3,21 @@
# Define IIg to enable a workaround for a bug in the serial
# driver of the Laserwriter IIf and IIg; this requires the POSIX
# tcdrain() function. (I haven't tested this personally.)
-DEFINES=-DA4 #-DIIg
-PREFIX=/usr/local
+DEFINES=
# Where to install public executables.
BINDIR=$(PREFIX)/bin
# Where to install private executables.
-LIBDIR=$(PREFIX)/lib
+LIBDIR=$(PREFIX)/libexec
# Define REV_COMMAND to be empty if documents don't need to
# be printed in reverse order.
-REV_COMMAND=$(BINDIR)/psrev |
+#REV_COMMAND=$(BINDIR)/psrev |
+REV_COMMAND=
# Where to install the filter for text files.
TEXT_FILTER=$(LIBDIR)/psif-text
# Where to install the filter for PostScript files.
PS_FILTER=$(LIBDIR)/psif-ps
# Where to install PostScript banner printing code
-BANNER=$(LIBDIR)/banner.ps
+BANNER=$(PREFIX)/share/misc/banner.ps
# Filter to convert text to PostScript. You can use your own instead.
# It must be able to read from standard input.
TEXT_TO_PS=$(BINDIR)/textps
@@ -29,15 +29,15 @@
MAN8EXT=8
MAN8DIR=$(MANROOT)/man$(MAN8EXT)
-CC=cc
-CFLAGS=-O $(DEFINES)
+CC?=cc
+CFLAGS+=-I${LOCALBASE}/include $(DEFINES)
#CFLAGS=-g -Bstatic $(DEFINES)
# Command for installing programs.
-INSTALL_PROGRAM=install
+INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM}
# Command for installing man pages.
-INSTALL_DATA=install -m 0444
+INSTALL_DATA=${BSD_INSTALL_DATA}
-SHELL=/bin/sh
+SHELL=${SH}
# Uncomment the next line for Ultrix.
#SHELL=/bin/sh5
@@ -89,7 +89,7 @@
-DPS_FILTER=\"$(PS_FILTER)\" -o $@ psif.c
textps: textps.c
- $(CC) $(CFLAGS) -o $@ textps.c
+ $(CC) $(CFLAGS) -o $@ textps.c -lpaper -L${LOCALBASE}/lib
psrev: psrev.c
$(CC) $(CFLAGS) -o $@ psrev.c