1995-04-15 04:34:11 +00:00
|
|
|
# New ports collection makefile for: a2ps
|
1998-07-16 04:48:58 +00:00
|
|
|
# Version required: 4.10.3
|
|
|
|
# Date created: 15 July 1998
|
1997-08-19 03:44:07 +00:00
|
|
|
# Whom: Chuck Robey (chuckr@freebsd.org)
|
1995-04-15 04:34:11 +00:00
|
|
|
#
|
1998-10-30 08:35:38 +00:00
|
|
|
# $Id: Makefile,v 1.20 1998/09/19 16:38:36 smace Exp $
|
1995-04-15 04:34:11 +00:00
|
|
|
#
|
|
|
|
|
1998-07-16 04:48:58 +00:00
|
|
|
DISTNAME= a2ps-4.10.3
|
|
|
|
PKGNAME= a2ps-${PAPERSIZE}-4.10.3
|
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-10-30 08:35:38 +00:00
|
|
|
LOOP_VAR= PAPERSIZE
|
|
|
|
LOOP_OPTIONS= Letter A4
|
1997-08-19 03:44:07 +00:00
|
|
|
GNU_CONFIGURE= yes
|
1998-07-16 04:48:58 +00:00
|
|
|
MAN1= a2ps.1 ogonkify.1 card.1 psmandup.1 fixps.1 pdiff.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:
|
1998-09-19 16:38:41 +00:00
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
1998-02-26 02:16:32 +00:00
|
|
|
strip ${PREFIX}/bin/a2ps
|
1998-07-21 13:48:37 +00:00
|
|
|
(cd ${WRKSRC}/doc; ${MAKE} install)
|
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
|