1995-04-15 06:34:11 +02:00
|
|
|
# New ports collection makefile for: psutils
|
|
|
|
# Version required: 1.13
|
|
|
|
# Date created: 21 September 1994
|
1996-05-13 17:41:00 +02:00
|
|
|
# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu)
|
1995-04-15 06:34:11 +02:00
|
|
|
#
|
1996-07-31 03:06:39 +02:00
|
|
|
# $Id: Makefile,v 1.9 1996/05/13 15:41:00 jmz Exp $
|
1995-04-15 06:34:11 +02:00
|
|
|
#
|
|
|
|
|
1994-09-22 01:05:50 +02:00
|
|
|
DISTNAME= psutils-1.13
|
1996-05-13 17:41:00 +02:00
|
|
|
PKGNAME= psutils-${PAPERSIZE}-1.13
|
1995-11-22 14:18:35 +01:00
|
|
|
CATEGORIES+= print
|
1996-07-31 03:06:39 +02:00
|
|
|
MASTER_SITES= ftp://nic.switch.ch/software/sources/psutils-1.8/ \
|
|
|
|
ftp://ftp.imag.fr/pub1/postscript/
|
1995-04-15 06:34:11 +02:00
|
|
|
|
1995-04-11 04:02:17 +02:00
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
1994-09-22 01:05:50 +02:00
|
|
|
|
1995-04-15 06:34:11 +02:00
|
|
|
WRKSRC= $(WRKDIR)/src-1.3
|
|
|
|
|
1996-05-13 17:41:00 +02:00
|
|
|
MAKE_FLAGS?= PAPERSIZE=${PAPERSIZE} -f
|
|
|
|
|
|
|
|
##package:: letter a4
|
|
|
|
|
|
|
|
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)
|
|
|
|
@echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
|
|
|
|
@echo "Possible values are: A3, A4 (default), A5, B5, letter, legal,"
|
|
|
|
@echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14."
|
|
|
|
@/usr/bin/false
|
|
|
|
.endif
|
|
|
|
|
1994-09-29 14:48:42 +01:00
|
|
|
pre-install:
|
1994-10-09 00:46:07 +01:00
|
|
|
@mkdir -p ${PREFIX}/share/psutils
|
1996-03-29 00:25:40 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOMANCOMPRESS)
|
|
|
|
@for f in 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; do \
|
|
|
|
gzip -nf ${PREFIX}/man/man1/$$f; done
|
|
|
|
.endif
|
1994-09-29 14:48:42 +01:00
|
|
|
|
1994-09-22 01:05:50 +02:00
|
|
|
.include <bsd.port.mk>
|