pkgsrc/print/a2ps/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: a2ps
# Version required: 4.9.9
# Date created: 18 August 1997
# Whom: Chuck Robey (chuckr@freebsd.org)
#
# $NetBSD: Makefile,v 1.3 1998/02/16 23:06:40 tron Exp $
# FreeBSD Id: Makefile,v 1.12 1998/02/15 21:24:42 steve Exp
#
DISTNAME= a2ps-4.9.9
1998-02-16 18:43:24 +01:00
PKGNAME= a2ps-${PAPER_SIZE}-4.9.9
CATEGORIES= print
MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/
MAINTAINER= chuckr@FreeBSD.org
GNU_CONFIGURE= yes
MAN1= a2ps.1 ogonkify.1
1998-02-16 18:43:24 +01:00
PAPER_SIZE?=
STRIP=
1998-02-16 18:43:24 +01:00
CONFIGURE_ARGS+= --with-medium=${PAPER_SIZE}
CONFIGURE_ENV+= LPR=lpr
1998-02-16 18:43:24 +01:00
ALL_TARGET= all PAPERSIZE=${PAPER_SIZE}
pre-build:
${TOUCH} $(WRKSRC)/doc/*.info
${TOUCH} $(WRKSRC)/doc/*.dvi
pre-configure:
1998-02-16 18:43:24 +01:00
@(case "X${PAPER_SIZE}" in \
XA4|XLetter|XLetterdj) \
goodsize=yes; \
;; \
X"") \
goodsize=no; \
${ECHO} "PAPER_SIZE not specified."; \
;; \
*) \
goodsize=no; \
${ECHO} "PAPER_SIZE incorrect value: $(PAPER_SIZE)."; \
;; \
esac; \
if [ $goodsize = "no" ]; then \
${ECHO} ""; \
${ECHO} "Must specify PAPER_SIZE as one of A4, Letter,"; \
${ECHO} " or Letterdj, either in the environment, or "; \
${ECHO} "via Makefile definitions of the same name. "; \
${ECHO} " Note that each PAPER_SIZE has a leading "; \
${ECHO} "capital letter, and Letterdj allows a "; \
${ECHO} "slightly larger margins for DeskJets."; \
false; \
fi)
.include <bsd.port.mk>