1995-04-15 04:34:11 +00:00
|
|
|
# New ports collection makefile for: a2ps
|
1997-11-25 23:50:56 +00:00
|
|
|
# Version required: 4.3
|
|
|
|
# Date created: 6 November 1994
|
|
|
|
# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu)
|
1995-04-15 04:34:11 +00:00
|
|
|
#
|
1998-10-30 08:35:38 +00:00
|
|
|
# $Id: Makefile,v 1.16 1998/04/04 07:36:44 asami Exp $
|
1995-04-15 04:34:11 +00:00
|
|
|
#
|
|
|
|
|
1994-11-06 02:13:39 +00:00
|
|
|
DISTNAME= a2ps
|
1997-11-25 23:50:56 +00:00
|
|
|
PKGNAME= a2ps-${PAPERSIZE}-4.3
|
1996-11-17 08:45:20 +00:00
|
|
|
CATEGORIES= print
|
1997-11-25 23:50:56 +00:00
|
|
|
MASTER_SITES= ftp://ftp.imag.fr/archive/postscript/format.translators/
|
|
|
|
DISTFILES= a2ps.V4.3.tar.gz
|
1995-04-15 04:34:11 +00:00
|
|
|
|
1997-11-27 02:12:33 +00:00
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
1994-11-06 02:13:39 +00:00
|
|
|
|
1998-04-04 07:36:46 +00:00
|
|
|
NO_LATEST_LINK= yes
|
1998-10-30 08:35:38 +00:00
|
|
|
LOOP_VAR= PAPERSIZE
|
|
|
|
LOOP_OPTIONS= letter a4
|
1997-11-25 23:50:56 +00:00
|
|
|
MAKE_FLAGS?= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
MAN1= a2ps.1
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-11-25 23:50:56 +00:00
|
|
|
letter::
|
|
|
|
${MAKE} PAPERSIZE=letter
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-11-25 23:50:56 +00:00
|
|
|
letter-install::
|
|
|
|
${MAKE} PAPERSIZE=letter install
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-11-25 23:50:56 +00:00
|
|
|
a4::
|
|
|
|
${MAKE} PAPERSIZE=a4
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1997-11-25 23:50:56 +00:00
|
|
|
a4-install::
|
|
|
|
${MAKE} PAPERSIZE=a4 install
|
1996-05-27 08:48:10 +00:00
|
|
|
|
|
|
|
|
1998-10-30 08:35:38 +00:00
|
|
|
.if !defined(PAPERSIZE)
|
|
|
|
PAPERSIZE_UNSPECIFIED= yes
|
|
|
|
PAPERSIZE=letter
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER || ${PAPERSIZE} == Letter
|
1998-02-25 02:33:52 +00:00
|
|
|
PAPERSIZE=letter
|
|
|
|
WIDTH=8.5
|
|
|
|
HEIGHT=11.0
|
|
|
|
A4_PAPERSIZE=0
|
1997-11-25 23:50:56 +00:00
|
|
|
.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4
|
|
|
|
PAPERSIZE=a4
|
|
|
|
WIDTH=8.27
|
|
|
|
HEIGHT=11.64
|
|
|
|
A4_PAPERSIZE=1
|
|
|
|
.else
|
|
|
|
PAPERSIZE_INVALID= yes
|
1998-10-30 08:35:38 +00:00
|
|
|
.endif
|
1996-05-27 08:48:10 +00:00
|
|
|
|
|
|
|
|
1997-11-25 23:50:56 +00:00
|
|
|
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."
|
1998-02-25 02:35:23 +00:00
|
|
|
@echo "Possible values are: A4 or letter (default)"
|
1997-11-25 23:50:56 +00:00
|
|
|
.elif defined(PAPERSIZE_INVALID)
|
|
|
|
@echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
|
1998-02-25 02:35:23 +00:00
|
|
|
@echo "Possible values are: A4 or letter (default)"
|
1997-11-25 23:50:56 +00:00
|
|
|
@/usr/bin/false
|
|
|
|
.endif
|
1994-11-06 02:13:39 +00:00
|
|
|
|
1997-11-25 23:50:56 +00:00
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${PREFIX}/bin
|
|
|
|
@${MKDIR} ${PREFIX}/man/man1
|
|
|
|
@(cd ${WRKSRC}; make install.man)
|
1997-10-11 02:57:19 +00:00
|
|
|
|
1997-11-25 23:50:56 +00:00
|
|
|
post-install:
|
|
|
|
strip ${PREFIX}/bin/a2ps
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1994-11-06 02:13:39 +00:00
|
|
|
.include <bsd.port.mk>
|