freebsd-ports/print/a2ps-letter/Makefile
Satoshi Asami 02d389691c Make thise ports use LOOP_VAR and LOOP_OPTIONS for PAPERSIZE. While
I'm here, make a2ps43's Makefile detect the missing PAPERSIZE
correctly, and add -${PAPERSIZE} in lprps's PKGNAME.
1998-10-30 08:35:38 +00:00

58 lines
1.4 KiB
Makefile

# New ports collection makefile for: a2ps
# Version required: 4.10.3
# Date created: 15 July 1998
# Whom: Chuck Robey (chuckr@freebsd.org)
#
# $Id: Makefile,v 1.20 1998/09/19 16:38:36 smace Exp $
#
DISTNAME= a2ps-4.10.3
PKGNAME= a2ps-${PAPERSIZE}-4.10.3
CATEGORIES= print
MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/
MAINTAINER= chuckr@FreeBSD.org
LOOP_VAR= PAPERSIZE
LOOP_OPTIONS= Letter A4
GNU_CONFIGURE= yes
MAN1= a2ps.1 ogonkify.1 card.1 psmandup.1 fixps.1 pdiff.1
PAPERSIZE?= Letter
STRIP=
CONFIGURE_ARGS= --with-medium=${PAPERSIZE}
Letter letter:
${MAKE} PAPERSIZE=Letter
Letterdj letterdj:
${MAKE} PAPERSIZE=Letterdj
A4 a4:
${MAKE} PAPERSIZE=A4
pre-configure:
.if ${PAPERSIZE} != A4 && ${PAPERSIZE} != Letter && ${PAPERSIZE} != Letterdj
@${ECHO}
@${ECHO} "PAPERSIZE incorrect value: ${PAPERSIZE}."
@${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."
@false
.endif
${ECHO} ${PAPERSIZE} > ${WRKDIR}/.media
post-install:
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
strip ${PREFIX}/bin/a2ps
(cd ${WRKSRC}/doc; ${MAKE} install)
.include <bsd.port.mk>
.if exists(${WRKDIR}/.media)
PAPERSIZE=
PAPERSIZE!= ${CAT} ${WRKDIR}/.media
.endif