1997-03-24 19:36:56 +00:00
|
|
|
# New ports collection makefile for: c2ps
|
1998-02-25 00:25:52 +00:00
|
|
|
# Version required: 4.0
|
1997-03-24 19:36:56 +00:00
|
|
|
# Date created: 19 March 1997
|
|
|
|
# Whom: Matthew Hunt <mph@pobox.com>
|
|
|
|
#
|
1998-02-26 04:32:17 +00:00
|
|
|
# $Id: Makefile,v 1.3 1998/02/25 12:04:28 asami Exp $
|
1997-03-24 19:36:56 +00:00
|
|
|
#
|
|
|
|
|
1998-02-25 00:25:52 +00:00
|
|
|
DISTNAME= c2ps-4.0
|
1998-02-25 12:04:28 +00:00
|
|
|
PKGNAME= c2ps-${PAPERSIZE:S/A4/a4/:S/LETTER/letter/:S/Letter/letter/}-4.0
|
1997-03-24 19:36:56 +00:00
|
|
|
CATEGORIES= print
|
1998-02-25 00:25:52 +00:00
|
|
|
MASTER_SITES= http://www.cs.technion.ac.il/users/c2ps/
|
1997-03-24 19:36:56 +00:00
|
|
|
|
|
|
|
MAINTAINER= mph@pobox.com
|
|
|
|
|
1998-02-26 04:32:17 +00:00
|
|
|
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter A4
|
1997-03-24 19:36:56 +00:00
|
|
|
MAN1= c2ps.1
|
1998-02-25 00:25:52 +00:00
|
|
|
MAKE_ENV= DEFAULT_PAPER_TYPE=${PAPERSIZE}
|
1997-03-24 19:36:56 +00:00
|
|
|
|
1998-02-25 00:25:52 +00:00
|
|
|
.if !defined(PAPERSIZE)
|
|
|
|
PAPERSIZE=A4
|
1998-02-25 12:04:28 +00:00
|
|
|
.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == Letter
|
|
|
|
PAPERSIZE=LETTER
|
|
|
|
.elif ${PAPERSIZE} == a4
|
|
|
|
PAPERSIZE=A4
|
1998-02-25 00:25:52 +00:00
|
|
|
.elif ${PAPERSIZE} != A4 && ${PAPERSIZE} != LETTER
|
|
|
|
PAPERSIZE_INVALID=yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if defined(PAPERSIZE_INVALID)
|
|
|
|
@${ECHO} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\""
|
1998-02-25 12:04:28 +00:00
|
|
|
@${ECHO} "Possible values are: A4 (default), and Letter."
|
1998-02-25 00:25:52 +00:00
|
|
|
@${FALSE}
|
|
|
|
.endif
|
1997-03-24 19:36:56 +00:00
|
|
|
|
1998-02-25 00:25:52 +00:00
|
|
|
.include <bsd.port.mk>
|