openbsd-ports/print/mpage/Makefile
2000-10-23 16:08:12 +00:00

42 lines
877 B
Makefile

# OpenBSD ports makefile for: mpage
#
# Version required: mpage 2.5
# Date created: August, 10th 1999
# Whom: Ian McWilliam
# $OpenBSD: Makefile,v 1.13 2000/10/23 16:08:13 espie Exp $
DISTNAME= mpage-2.5
CATEGORIES= print
MASTER_SITES= ftp://ftp.mesa.nl/pub/mpage/
EXTRACT_SUFX= .tgz
MAINTAINER= Ian McWilliam <i.mcwilliam@uws.edu.au>
LICENSE_TYPE= BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FLAVORS=us_letter legal a4
FLAVOR?=a4
fetch-depends:
.if ${FLAVOR:L} == "us_letter"
MAKE_ENV+= PAGESIZE=PAGE_LETTER
.elif ${FLAVOR:L} == "legal"
MAKE_ENV+= PAGESIZE=PAGE_LEGAL
.elif ${FLAVOR:L} == "a4"
MAKE_ENV+= PAGESIZE=PAGE_A4
.else
@echo ""
@echo >&2 "Unknown flavor: ${FLAVOR}"
@echo >&2 "You must set ONE flavor: ${FLAVORS}"
@echo ""
@exit 1
.endif
.include <bsd.port.mk>