1995-04-15 04:34:11 +00:00
|
|
|
# New ports collection makefile for: a2ps
|
1998-02-15 21:24:52 +00:00
|
|
|
# Version required: 4.9.9
|
1997-08-19 03:44:07 +00:00
|
|
|
# Date created: 18 August 1997
|
|
|
|
# Whom: Chuck Robey (chuckr@freebsd.org)
|
1995-04-15 04:34:11 +00:00
|
|
|
#
|
1998-04-19 03:39:09 +00:00
|
|
|
# $Id: Makefile,v 1.14 1998/02/26 04:31:49 asami Exp $
|
1995-04-15 04:34:11 +00:00
|
|
|
#
|
|
|
|
|
1998-04-19 03:39:09 +00:00
|
|
|
DISTNAME= a2ps-4.10
|
|
|
|
PKGNAME= a2ps-${PAPERSIZE}-4.10
|
1996-11-17 08:45:20 +00:00
|
|
|
CATEGORIES= print
|
1997-08-19 03:44:07 +00:00
|
|
|
MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/
|
1995-04-15 04:34:11 +00:00
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
MAINTAINER= chuckr@FreeBSD.org
|
1994-11-06 02:13:39 +00:00
|
|
|
|
1998-02-26 04:31:49 +00:00
|
|
|
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter A4
|
1997-08-19 03:44:07 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
MAN1= a2ps.1 ogonkify.1
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1998-02-26 02:16:32 +00:00
|
|
|
PAPERSIZE?= Letter
|
1997-08-19 03:44:07 +00:00
|
|
|
STRIP=
|
1998-02-26 02:16:32 +00:00
|
|
|
CONFIGURE_ARGS= --with-medium=${PAPERSIZE}
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1998-02-26 02:16:32 +00:00
|
|
|
Letter letter:
|
|
|
|
${MAKE} PAPERSIZE=Letter
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1998-02-26 02:16:32 +00:00
|
|
|
Letterdj letterdj:
|
|
|
|
${MAKE} PAPERSIZE=Letterdj
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1998-02-26 02:16:32 +00:00
|
|
|
A4 a4:
|
|
|
|
${MAKE} PAPERSIZE=A4
|
1997-10-11 02:57:19 +00:00
|
|
|
|
1997-08-19 03:44:07 +00:00
|
|
|
pre-configure:
|
1998-02-26 02:16:32 +00:00
|
|
|
.if ${PAPERSIZE} != A4 && ${PAPERSIZE} != Letter && ${PAPERSIZE} != Letterdj
|
1998-02-15 21:24:52 +00:00
|
|
|
@${ECHO}
|
1998-02-26 02:16:32 +00:00
|
|
|
@${ECHO} "PAPERSIZE incorrect value: ${PAPERSIZE}."
|
1998-02-15 21:24:52 +00:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "Must specify PAPERSIZE as one of A4, Letter, or Letterdj, either"
|
|
|
|
@${ECHO} "using setenv, or via Makefile targets of the same name. Note"
|
|
|
|
@${ECHO} "that each PAPERSIZE has a leading capital letter, and Letterdj"
|
|
|
|
@${ECHO} "allows a slightly larger margins for DeskJets."
|
1997-08-19 03:44:07 +00:00
|
|
|
@false
|
|
|
|
.endif
|
1998-02-26 02:16:32 +00:00
|
|
|
${ECHO} ${PAPERSIZE} > ${WRKDIR}/.media
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${LDCONFIG} -R ${PREFIX}/lib
|
|
|
|
strip ${PREFIX}/bin/a2ps
|
1996-05-27 08:48:10 +00:00
|
|
|
|
1994-11-06 02:13:39 +00:00
|
|
|
.include <bsd.port.mk>
|
1997-08-19 03:44:07 +00:00
|
|
|
|
1998-02-26 02:16:32 +00:00
|
|
|
.if exists(${WRKDIR}/.media)
|
1997-08-19 03:44:07 +00:00
|
|
|
PAPERSIZE=
|
1998-02-26 02:16:32 +00:00
|
|
|
PAPERSIZE!= ${CAT} ${WRKDIR}/.media
|
1997-08-19 03:44:07 +00:00
|
|
|
.endif
|