summaryrefslogtreecommitdiff
path: root/print/c2ps
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-05-03 19:05:17 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-05-03 19:05:17 +0000
commitcb6d21f4ef14c1792659555f5ccf84e97211724c (patch)
tree5b51ea41b34e923ce46b9a55bda9e54bf2eec791 /print/c2ps
parent- Update to 3.0.j2.1b. (diff)
Style fix.
Notes
Notes: svn path=/head/; revision=317232
Diffstat (limited to 'print/c2ps')
-rw-r--r--print/c2ps/Makefile6
-rw-r--r--print/c2ps/files/patch-Makefile13
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 *~
--
--