diff options
-rw-r--r-- | print/c2ps/Makefile | 6 | ||||
-rw-r--r-- | print/c2ps/files/patch-Makefile | 13 |
2 files changed, 9 insertions, 10 deletions
diff --git a/print/c2ps/Makefile b/print/c2ps/Makefile index bc7d1c323667..3566d3e16347 100644 --- a/print/c2ps/Makefile +++ b/print/c2ps/Makefile @@ -6,17 +6,17 @@ PORTVERSION= 4.0 PORTREVISION= 3 CATEGORIES= print MASTER_SITES= http://www.cs.technion.ac.il/users/c2ps/ -DISTNAME= c2ps-${PORTVERSION} MAINTAINER= hrs@FreeBSD.org COMMENT= A PostScript pretty-printer for C source LIB_DEPENDS= paper:${PORTSDIR}/print/libpaper -MAKE_ENV= CCFLAGS="${CFLAGS} -I${LOCALBASE}/include" -MAN1= c2ps.1 +CPPFLAGS+= -I${LOCALBASE}/include PLIST_FILES= bin/c2ps +MAN1= c2ps.1 + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/c2ps ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/c2ps.1 ${MANPREFIX}/man/man1 diff --git a/print/c2ps/files/patch-Makefile b/print/c2ps/files/patch-Makefile index c7de117340f9..416d95e08a8a 100644 --- a/print/c2ps/files/patch-Makefile +++ b/print/c2ps/files/patch-Makefile @@ -1,23 +1,24 @@ --- Makefile.orig 1997-05-16 00:50:56.000000000 +0900 -+++ Makefile 2013-05-02 15:48:59.000000000 +0900 -@@ -2,12 +2,12 @@ ++++ Makefile 2013-05-04 04:02:28.000000000 +0900 +@@ -2,12 +2,13 @@ # Last modified: Sat Apr 19 1997 RM = rm -f -CC = gcc -CCFLAGS = -O +CC? = gcc -+CCFLAGS?= -O ++CCFLAGS?= ${CFLAGS} -PREFIX = /usr/local +PREFIX?= /usr/local BIN = $(PREFIX)/bin -MAN = $(PREFIX)/man/man1 ++MAN1PREFIX?= ${PREFIX} +MAN = ${MAN1PREFIX}/man/man1 # you may predefine some of the default settings DEFAULT_FONT = \"Courier\" -@@ -31,23 +31,20 @@ +@@ -31,21 +32,20 @@ -DSTRINGS=$(STRINGS_FONT) -DPREPROC=$(PREPROC_FONT)\ -DKEYWORD=$(KEYWORD_FONT) -DTYPE=$(TYPE_FONT)\ -DLNUMBER=$(LNUMBER_FONT) -DFUNCTION=$(FUNCTION_FONT)\ @@ -39,9 +40,7 @@ compile: c2ps.c - $(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c -+ $(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c -L${LOCALBASE}/lib -lm -lpaper ++ $(CC) $(PREP_OPTIONS) $(CCFLAGS) $(CPPFLAGS) -o c2ps c2ps.c -L${LOCALBASE}/lib -lm -lpaper clean: $(RM) c2ps *.o core *~ -- -- |