summaryrefslogtreecommitdiff
path: root/print/c2ps-letter
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-02-25 00:25:52 +0000
committerSteve Price <steve@FreeBSD.org>1998-02-25 00:25:52 +0000
commita6d2662a76629617ee82e28fba66901b6c6968c4 (patch)
treecbbb74cd87c40bd4a292ebdc659cedd2eb4750cb /print/c2ps-letter
parentUpgrade to use tcl8.1 and tk8.1. (diff)
Upgrade to version 4.0 and allow the build of A4 and LETTER
packages. PR: 5075 Submitted by: Matthew Hunt <mph@pobox.com>
Diffstat (limited to 'print/c2ps-letter')
-rw-r--r--print/c2ps-letter/Makefile26
-rw-r--r--print/c2ps-letter/distinfo2
-rw-r--r--print/c2ps-letter/files/patch-aa30
3 files changed, 46 insertions, 12 deletions
diff --git a/print/c2ps-letter/Makefile b/print/c2ps-letter/Makefile
index e5a6cc8cd242..f7f35f090f43 100644
--- a/print/c2ps-letter/Makefile
+++ b/print/c2ps-letter/Makefile
@@ -1,20 +1,32 @@
# New ports collection makefile for: c2ps
-# Version required: 3.0
+# Version required: 4.0
# Date created: 19 March 1997
# Whom: Matthew Hunt <mph@pobox.com>
#
-# $Id$
+# $Id: Makefile,v 1.1.1.1 1997/03/24 19:36:55 obrien Exp $
#
-DISTNAME= c2ps-3.0
+DISTNAME= c2ps-4.0
+PKGNAME= c2ps-${PAPERSIZE:S/A/a/:S/LETTER/letter/}-4.0
CATEGORIES= print
-MASTER_SITES= http://www.geocities.com/SiliconValley/Park/2055/
-DISTFILES= c2ps-30.tgz
-# Also: http://www.cs.technion.ac.il/~c0928189/c2ps/c2ps-3.0.tar.Z
+MASTER_SITES= http://www.cs.technion.ac.il/users/c2ps/
MAINTAINER= mph@pobox.com
MAN1= c2ps.1
+MAKE_ENV= DEFAULT_PAPER_TYPE=${PAPERSIZE}
-.include <bsd.port.mk>
+.if !defined(PAPERSIZE)
+PAPERSIZE=A4
+.elif ${PAPERSIZE} != A4 && ${PAPERSIZE} != LETTER
+PAPERSIZE_INVALID=yes
+.endif
+
+pre-fetch:
+.if defined(PAPERSIZE_INVALID)
+ @${ECHO} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\""
+ @${ECHO} "Possible values are: A4 (default), and LETTER."
+ @${FALSE}
+.endif
+.include <bsd.port.mk>
diff --git a/print/c2ps-letter/distinfo b/print/c2ps-letter/distinfo
index b4790a02a089..01e6bd65e81a 100644
--- a/print/c2ps-letter/distinfo
+++ b/print/c2ps-letter/distinfo
@@ -1 +1 @@
-MD5 (c2ps-30.tgz) = 27f07557444a02d56e88012e900a3bb8
+MD5 (c2ps-4.0.tar.gz) = 195553258f2f18198f164ea8f66362dc
diff --git a/print/c2ps-letter/files/patch-aa b/print/c2ps-letter/files/patch-aa
index 5f4b02b67767..d00f0ee039b5 100644
--- a/print/c2ps-letter/files/patch-aa
+++ b/print/c2ps-letter/files/patch-aa
@@ -1,7 +1,7 @@
---- Makefile.orig Thu Jul 18 14:43:18 1996
-+++ Makefile Wed Mar 19 13:19:33 1997
-@@ -1,10 +1,7 @@
- # Makefile for c2ps ver3.0
+--- Makefile.orig Thu May 15 11:50:56 1997
++++ Makefile Thu Nov 20 22:06:51 1997
+@@ -2,10 +2,7 @@
+ # Last modified: Sat Apr 19 1997
RM = rm -f
-CC = gcc
@@ -11,3 +11,25 @@
BIN = $(PREFIX)/bin
MAN = $(PREFIX)/man/man1
+@@ -20,8 +17,6 @@
+ FUNCTION_FONT = \"Bookman-LightItalic\"
+
+ COMMENT_DIMMING_DEGREE = 0.75
+-DEFAULT_PAPER_TYPE = A4
+-# possible values are A4 and LETTER
+
+
+ #___You don't need to change anything below__________________
+@@ -39,10 +34,10 @@
+ install: bininstall maninstall
+
+ bininstall: c2ps
+- install -m 755 c2ps $(BIN)
++ $(INSTALL_PROGRAM) c2ps $(BIN)
+
+ maninstall: c2ps.1
+- install -m 644 c2ps.1 $(MAN)
++ $(INSTALL_MAN) c2ps.1 $(MAN)
+
+ compile: c2ps.c
+ $(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c