aboutsummaryrefslogtreecommitdiffstats
path: root/print/a2ps-letter/Makefile
blob: 735a7564a45064b32fd9b0168d93376640d337f4 (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
# New ports collection makefile for:    a2ps (letter)
# Version required:     4.10.3
# Date created:         15 July 1998
# Whom:                 Chuck Robey (chuckr@freebsd.org)
#
# $Id: Makefile,v 1.25 1999/03/20 02:56:04 chuckr Exp $
#

DISTNAME=   a2ps-4.12
PKGNAME=    a2ps-${PAPERSIZE}-4.12
CATEGORIES= print
MASTER_SITES=   http://www.freebsd.org/~chuckr/ \
        http://www-inf.enst.fr/~demaille/ftp/a2ps/
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} sheets.map.fixed

MAINTAINER= chuckr@FreeBSD.org

GNU_CONFIGURE=  yes
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}
MAN1=       a2ps.1 ogonkify.1 card.1 psmandup.1 fixps.1 pdiff.1

PAPERSIZE?= letter
PAPERSIZECNF=   ${PAPERSIZE:S/l/L/:S/a/A/}
STRIP=
CONFIGURE_ARGS= --with-medium=${PAPERSIZECNF} --sharedstatedir=$(PREFIX)/share/a2ps --sysconfdir=$(PREFIX)/share/a2ps --datadir=$(PREFIX)/share/a2ps --localstatedir=$(PREFIX)/share/a2ps

.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter && ${PAPERSIZE} != letterdj
.BEGIN:
    @${ECHO}
    @${ECHO} "PAPERSIZE incorrect value: ${PAPERSIZE}."
    @${ECHO}
    @${ECHO} "Must specify PAPERSIZE as one of a4, letter, or letterdj."
    @${ECHO} "letterdj allows a slightly larger margins for DeskJets."
    @${FALSE}
.endif

post-extract:
    $(CP) $(DISTDIR)/sheets.map.fixed $(WRKSRC)/sheets/sheets.map

post-install:
    strip ${PREFIX}/bin/a2ps
    (cd ${WRKSRC}/doc; ${MAKE} install)
    $(RM) -f $(PREFIX)/lib/liba2ps.la

.include <bsd.port.mk>