diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2013-04-27 16:00:26 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2013-04-27 16:00:26 +0000 |
commit | 03156fbc9e57b8833d571c09fe86a65de05d8966 (patch) | |
tree | a41583195bf11eaddcc25d81461b4a49df2cefca /print/c2ps/files/patch-Makefile | |
parent | - rename patch, since it's now applied uncoditionally and remove EXTRA_PATCHE... (diff) |
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]
Diffstat (limited to 'print/c2ps/files/patch-Makefile')
-rw-r--r-- | print/c2ps/files/patch-Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/print/c2ps/files/patch-Makefile b/print/c2ps/files/patch-Makefile new file mode 100644 index 000000000000..602ed394d712 --- /dev/null +++ b/print/c2ps/files/patch-Makefile @@ -0,0 +1,47 @@ +--- Makefile.orig 1997-05-16 00:50:56.000000000 +0900 ++++ Makefile 2013-04-27 18:57:47.000000000 +0900 +@@ -2,12 +2,12 @@ + # Last modified: Sat Apr 19 1997 + + RM = rm -f +-CC = gcc +-CCFLAGS = -O ++CC? = gcc ++CCFLAGS?= -O + +-PREFIX = /usr/local ++PREFIX?= /usr/local + BIN = $(PREFIX)/bin +-MAN = $(PREFIX)/man/man1 ++MAN = ${MAN1PREFIX}/man/man1 + + # you may predefine some of the default settings + DEFAULT_FONT = \"Courier\" +@@ -31,23 +31,20 @@ + -DSTRINGS=$(STRINGS_FONT) -DPREPROC=$(PREPROC_FONT)\ + -DKEYWORD=$(KEYWORD_FONT) -DTYPE=$(TYPE_FONT)\ + -DLNUMBER=$(LNUMBER_FONT) -DFUNCTION=$(FUNCTION_FONT)\ +- -DDIM=$(COMMENT_DIMMING_DEGREE)\ +- -D$(DEFAULT_PAPER_TYPE) ++ -DDIM=$(COMMENT_DIMMING_DEGREE) + + all: compile + + install: bininstall maninstall + + bininstall: c2ps +- install -m 755 c2ps $(BIN) ++ ${BSD_INSTALL_PROGRAM} c2ps $(BIN) + + maninstall: c2ps.1 +- install -m 644 c2ps.1 $(MAN) ++ ${BSD_INSTALL_DATA} c2ps.1 $(MAN) + + compile: c2ps.c +- $(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c ++ $(CC) $(PREP_OPTIONS) $(CFLAGS) -o c2ps c2ps.c -L${LOCALBASE}/lib -lm -lpaper + + clean: + $(RM) c2ps *.o core *~ +- +- |