pkgsrc/print/mpage/Makefile
reed dd59b9e320 Use MAKE_ENV instead of MAKEFLAGS for setting the papersize.
This fixes PR #31102 which I just reopened.

The problem could be seen when installing another package
that depends on mpage. But couldn't be seen when directly
building within pkgsrc/print/mpage.
2005-09-20 19:43:03 +00:00

22 lines
492 B
Makefile

# $NetBSD: Makefile,v 1.15 2005/09/20 19:43:03 reed Exp $
#
DISTNAME= mpage-2.5
CATEGORIES= print
MASTER_SITES= ftp://ftp.mesa.nl/pub/mpage/
EXTRACT_SUFX= .tgz
MAINTAINER= tech-pkg@NetBSD.org
COMMENT= Print multiple pages per sheet of paper
BUILD_TARGET= default
.include "../../mk/bsd.prefs.mk"
.if ${PAPERSIZE} == "A4"
MAKE_ENV+= PAGESIZE=PAGE_A4
.elif ((${PAPERSIZE} == "Letter") || (${PAPERSIZE} == "Letterdj"))
MAKE_ENV+= PAGESIZE=PAGE_LETTER
.endif
.include "../../mk/bsd.pkg.mk"