1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/print/a2ps43-letter/Makefile
Satoshi Asami 751790b51a Remove LOOP_VAR and replace it with tiny Makefiles using MASTERDIR to
share most files.  Repository copy the default to explicitly named
directories to avoid any confusion.  Greatly simplify the shared
Makefiles, since we are now in different subdirectories, we don't need
"a4-install" stuff.

While I'm here, consistently name the variables.  Here are the
guidelines (master port is in brackets)

DOCFORMAT:	[html] pdf ps
KONFONT:	14dot [16dot]
PAPERSIZE:	a4 [letter] letterdj
RESOLUTION:	118 240 [300] 360 400 600

"math/r" has been copied to "R-a4" and "R-letter", to follow the
spirit of the original port.  "japanese/kon" is renamed to "kon2-*",
since that seems to be the basename.
1998-11-20 04:15:15 +00:00

48 lines
1.0 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.17 1998/10/30 08:35:29 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
MAKE_FLAGS?= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f
NO_WRKSUBDIR= yes
MAN1= a2ps.1
PAPERSIZE?= letter
.if ${PAPERSIZE} == letter
WIDTH=8.5
HEIGHT=11.0
A4_PAPERSIZE=0
.elif ${PAPERSIZE} == a4
WIDTH=8.27
HEIGHT=11.64
A4_PAPERSIZE=1
.else
.BEGIN:
@${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
@${ECHO} "Possible values are: a4 or letter"
@${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>