1995-04-15 00:34:11 -04:00
|
|
|
# New ports collection makefile for: psutils
|
1996-08-01 20:13:21 -04:00
|
|
|
# Version required: 1.16
|
1995-04-15 00:34:11 -04:00
|
|
|
# Date created: 21 September 1994
|
1996-05-13 11:41:00 -04:00
|
|
|
# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu)
|
1995-04-15 00:34:11 -04:00
|
|
|
#
|
1998-10-30 03:35:38 -05:00
|
|
|
# $Id: Makefile,v 1.16 1998/03/12 16:12:09 jmz Exp $
|
1995-04-15 00:34:11 -04:00
|
|
|
#
|
|
|
|
|
1997-08-15 19:14:09 -04:00
|
|
|
DISTNAME= psutils-p17
|
|
|
|
PKGNAME= psutils-${PAPERSIZE}-1.17
|
1996-11-17 03:45:20 -05:00
|
|
|
CATEGORIES= print
|
1998-01-08 13:52:14 -05:00
|
|
|
MASTER_SITES= ftp://ftp.dcs.ed.ac.uk/pub/ajcd/
|
1997-11-10 06:23:41 -05:00
|
|
|
|
1995-04-10 22:02:17 -04:00
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
1994-09-21 19:05:50 -04:00
|
|
|
|
1998-10-30 03:35:38 -05:00
|
|
|
LOOP_VAR= PAPERSIZE
|
|
|
|
LOOP_OPTIONS= letter a4
|
1997-08-15 19:14:09 -04:00
|
|
|
WRKSRC= ${WRKDIR}/psutils
|
1996-08-01 20:13:21 -04:00
|
|
|
MAKE_FLAGS?= PAPER=${PAPERSIZE} -f
|
1996-11-17 03:45:20 -05:00
|
|
|
MAN1= psbook.1 psselect.1 pstops.1 epsffit.1 psnup.1 psresize.1 \
|
|
|
|
getafm.1 fixdlsrps.1 fixfmps.1 fixmacps.1 fixpsditps.1 \
|
|
|
|
fixpspps.1 fixtpps.1 fixwfwps.1 fixwpps.1 fixwwps.1 \
|
|
|
|
extractres.1 includeres.1 fixscribeps.1 psmerge.1
|
|
|
|
|
1996-05-13 11:41:00 -04:00
|
|
|
|
|
|
|
##package:: letter a4
|
1996-08-01 20:13:21 -04:00
|
|
|
|
1996-05-13 11:41:00 -04:00
|
|
|
letter::
|
|
|
|
${MAKE} PAPERSIZE=letter
|
|
|
|
|
|
|
|
letter-install::
|
|
|
|
${MAKE} PAPERSIZE=letter install
|
|
|
|
|
|
|
|
a4::
|
|
|
|
${MAKE} PAPERSIZE=a4
|
|
|
|
|
|
|
|
|
|
|
|
.if !defined(PAPERSIZE)
|
|
|
|
PAPERSIZE=a4
|
|
|
|
PAPERSIZE_UNSPECIFIED= yes
|
|
|
|
.else
|
|
|
|
.if ${PAPERSIZE} != A3 && ${PAPERSIZE} != a3 && ${PAPERSIZE} != A4 \
|
|
|
|
&& ${PAPERSIZE} != a4 && ${PAPERSIZE} != A5 && ${PAPERSIZE} != a5 \
|
|
|
|
&& ${PAPERSIZE} != B5 && ${PAPERSIZE} != b5 \
|
|
|
|
&& ${PAPERSIZE} != letter && ${PAPERSIZE} != legal \
|
|
|
|
&& ${PAPERSIZE} != ledger && ${PAPERSIZE} != tabloid \
|
|
|
|
&& ${PAPERSIZE} != statement && ${PAPERSIZE} != executive \
|
|
|
|
&& ${PAPERSIZE} != folio && ${PAPERSIZE} != quarto && ${PAPERSIZE} != 10x14
|
|
|
|
PAPERSIZE_INVALID= yes
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if defined(PAPERSIZE_UNSPECIFIED)
|
|
|
|
@echo "Defaulting to ${PAPERSIZE} sized paper."
|
|
|
|
@echo ""
|
|
|
|
@echo "Set the environment variable PAPERSIZE if you want to use other sizes."
|
|
|
|
@echo "Possible values are: A3, A4 (default), A5, B5, letter, legal,"
|
|
|
|
@echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14."
|
|
|
|
.elif defined(PAPERSIZE_INVALID)
|
1998-03-12 11:12:53 -05:00
|
|
|
@echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
|
1996-05-13 11:41:00 -04:00
|
|
|
@echo "Possible values are: A3, A4 (default), A5, B5, letter, legal,"
|
|
|
|
@echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14."
|
1998-03-12 11:12:53 -05:00
|
|
|
@${FALSE}
|
1996-05-13 11:41:00 -04:00
|
|
|
.endif
|
|
|
|
|
1994-09-21 19:05:50 -04:00
|
|
|
.include <bsd.port.mk>
|