diff options
author | asami <asami@FreeBSD.org> | 1998-02-25 12:04:28 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1998-02-25 12:04:28 +0000 |
commit | b8167e8cdb60f2e09ce0d1001f6ce5545eb097f5 (patch) | |
tree | 56d0ec917a8c056f5f906545b7f39b65fb1216e8 | |
parent | 584d70bf1a6f2bf99fe6ae5f3d4059924ec8119d (diff) | |
download | FreeBSD-ports-b8167e8cdb60f2e09ce0d1001f6ce5545eb097f5.zip FreeBSD-ports-b8167e8cdb60f2e09ce0d1001f6ce5545eb097f5.tar.gz |
Allow names like "a4" and "Letter" too. The package name is always
lower-cased.
-rw-r--r-- | print/c2ps-letter/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/print/c2ps-letter/Makefile b/print/c2ps-letter/Makefile index f7f35f0..56f5ebc 100644 --- a/print/c2ps-letter/Makefile +++ b/print/c2ps-letter/Makefile @@ -3,11 +3,11 @@ # Date created: 19 March 1997 # Whom: Matthew Hunt <mph@pobox.com> # -# $Id: Makefile,v 1.1.1.1 1997/03/24 19:36:55 obrien Exp $ +# $Id: Makefile,v 1.2 1998/02/25 00:25:41 steve Exp $ # DISTNAME= c2ps-4.0 -PKGNAME= c2ps-${PAPERSIZE:S/A/a/:S/LETTER/letter/}-4.0 +PKGNAME= c2ps-${PAPERSIZE:S/A4/a4/:S/LETTER/letter/:S/Letter/letter/}-4.0 CATEGORIES= print MASTER_SITES= http://www.cs.technion.ac.il/users/c2ps/ @@ -18,6 +18,10 @@ MAKE_ENV= DEFAULT_PAPER_TYPE=${PAPERSIZE} .if !defined(PAPERSIZE) PAPERSIZE=A4 +.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == Letter +PAPERSIZE=LETTER +.elif ${PAPERSIZE} == a4 +PAPERSIZE=A4 .elif ${PAPERSIZE} != A4 && ${PAPERSIZE} != LETTER PAPERSIZE_INVALID=yes .endif @@ -25,7 +29,7 @@ PAPERSIZE_INVALID=yes pre-fetch: .if defined(PAPERSIZE_INVALID) @${ECHO} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\"" - @${ECHO} "Possible values are: A4 (default), and LETTER." + @${ECHO} "Possible values are: A4 (default), and Letter." @${FALSE} .endif |