summaryrefslogtreecommitdiffstats
path: root/print/c2ps-letter/Makefile
blob: 67d4eef9683a8d1ac0c833ddbbefa89a20d169cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# New ports collection makefile for:   c2ps (letter)
# Date created:        19 March 1997
# Whom:                Matthew Hunt <mph@pobox.com>
#
# $FreeBSD$
#

PORTNAME=	c2ps-${PAPERSIZE}
PORTVERSION=	4.0
CATEGORIES=	print
MASTER_SITES=	http://www.cs.technion.ac.il/users/c2ps/
DISTNAME=	c2ps-${PORTVERSION}

MAINTAINER=	ports@freebsd.org
COMMENT=	A PostScript pretty-printer for C source

MAN1=		c2ps.1
PLIST_FILES=	bin/c2ps
MAKE_ENV=	DEFAULT_PAPER_TYPE=${PS}

PAPERSIZE?=	letter
PS!=		echo ${PAPERSIZE} | awk '{print toupper($$1)}'
.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter
.BEGIN:
	@${ECHO} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\""
	@${ECHO} "Possible values are:  a4, and letter."
	@${FALSE}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud