aboutsummaryrefslogtreecommitdiffstats
path: root/print/enscript-letter/Makefile
blob: 7b13ee092ea323d509fec25bc68dac28111c2d2d (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    enscript (letter)
# Date created:         24 Jul, 1997
# Whom:             kline
#
# $FreeBSD$
#

PORTNAME=   enscript
PORTVERSION=    1.6.4
PORTREVISION=   1
CATEGORIES+=    print
MASTER_SITES=   http://www.codento.com/people/mtr/genscript/
PKGNAMESUFFIX=  -${PAPERSIZE}
DISTNAME=   enscript-${PORTVERSION}

MAINTAINER?=    rafan@infor.org
COMMENT=    ASCII to PostScript filter

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-nls --with-media=${PS}
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}

INFO=       enscript
MAN1=       diffpp.1 enscript.1 sliceprint.1 states.1

PAPERSIZE?= letter

.if ${PAPERSIZE} == a4
PS=A4
.elif ${PAPERSIZE} == letter
PS=Letter
.elif ${PAPERSIZE} == letterdj
PS=Letterdj
.else
.BEGIN:
    @${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
    @${ECHO} "Possible values are:  a4, letter, or letterdj"
    @${FALSE}
.endif

.include <bsd.port.mk>