mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
02d389691c
I'm here, make a2ps43's Makefile detect the missing PAPERSIZE correctly, and add -${PAPERSIZE} in lprps's PKGNAME.
78 lines
1.7 KiB
Makefile
78 lines
1.7 KiB
Makefile
# New ports collection makefile for: a2ps
|
|
# Version required: 4.3
|
|
# Date created: 6 November 1994
|
|
# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu)
|
|
#
|
|
# $Id: Makefile,v 1.16 1998/04/04 07:36:44 asami Exp $
|
|
#
|
|
|
|
DISTNAME= a2ps
|
|
PKGNAME= a2ps-${PAPERSIZE}-4.3
|
|
CATEGORIES= print
|
|
MASTER_SITES= ftp://ftp.imag.fr/archive/postscript/format.translators/
|
|
DISTFILES= a2ps.V4.3.tar.gz
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
|
|
NO_LATEST_LINK= yes
|
|
LOOP_VAR= PAPERSIZE
|
|
LOOP_OPTIONS= letter a4
|
|
MAKE_FLAGS?= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f
|
|
NO_WRKSUBDIR= yes
|
|
MAN1= a2ps.1
|
|
|
|
letter::
|
|
${MAKE} PAPERSIZE=letter
|
|
|
|
letter-install::
|
|
${MAKE} PAPERSIZE=letter install
|
|
|
|
a4::
|
|
${MAKE} PAPERSIZE=a4
|
|
|
|
a4-install::
|
|
${MAKE} PAPERSIZE=a4 install
|
|
|
|
|
|
.if !defined(PAPERSIZE)
|
|
PAPERSIZE_UNSPECIFIED= yes
|
|
PAPERSIZE=letter
|
|
.endif
|
|
|
|
.if ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER || ${PAPERSIZE} == Letter
|
|
PAPERSIZE=letter
|
|
WIDTH=8.5
|
|
HEIGHT=11.0
|
|
A4_PAPERSIZE=0
|
|
.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4
|
|
PAPERSIZE=a4
|
|
WIDTH=8.27
|
|
HEIGHT=11.64
|
|
A4_PAPERSIZE=1
|
|
.else
|
|
PAPERSIZE_INVALID= yes
|
|
.endif
|
|
|
|
|
|
pre-fetch:
|
|
.if defined(PAPERSIZE_UNSPECIFIED)
|
|
@echo "Defaulting to ${PAPERSIZE} sized paper."
|
|
@echo ""
|
|
@echo "Set the environment variable PAPERSIZE if you want to use other sizes."
|
|
@echo "Possible values are: A4 or letter (default)"
|
|
.elif defined(PAPERSIZE_INVALID)
|
|
@echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
|
|
@echo "Possible values are: A4 or letter (default)"
|
|
@/usr/bin/false
|
|
.endif
|
|
|
|
pre-install:
|
|
@${MKDIR} ${PREFIX}/bin
|
|
@${MKDIR} ${PREFIX}/man/man1
|
|
@(cd ${WRKSRC}; make install.man)
|
|
|
|
post-install:
|
|
strip ${PREFIX}/bin/a2ps
|
|
|
|
.include <bsd.port.mk>
|