aboutsummaryrefslogtreecommitdiffstats
path: root/print/a2ps43-letter/Makefile
blob: a2318507119b95e093a08c7e8d798b3e69bd3554 (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
42
43
44
45
46
47
# ex:ts=8
# New ports collection makefile for:    a2ps
# Version required: 0.0
# Date created:         6 November 1994
# Whom:                 jmz & David O'Brien (obrien@cs.ucdavis.edu)
#
# $FreeBSD$
#

DISTNAME=   a2ps.V4.3
PKGNAME=    a2ps-${PAPERSIZE}-4.3
CATEGORIES= print
MASTER_SITES=   ftp://ftp.imag.fr/archive/postscript/format.translators/

MAINTAINER= obrien@FreeBSD.org

NO_LATEST_LINK= yes
MAKE_FLAGS?=    WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f
NO_WRKSUBDIR=   yes
MAN1=       a2ps.1

PAPERSIZE?= letter

.if ${PAPERSIZE} == letter
WIDTH=8.5
HEIGHT=11.0
A4_PAPERSIZE=0
.elif ${PAPERSIZE} == a4
WIDTH=8.27
HEIGHT=11.64
A4_PAPERSIZE=1
.else
.BEGIN:
    @${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
    @${ECHO} "Possible values are:  a4 or letter"
    @${FALSE}
.endif

pre-install:
    @${MKDIR} ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/man/man1
    @(cd ${WRKSRC}; make install.man)

post-install:
    strip ${PREFIX}/bin/a2ps

.include <bsd.port.mk>