From 71102e95212bab836c7a1f7b6a46879128507258 Mon Sep 17 00:00:00 2001 From: asami Date: Fri, 20 Nov 1998 04:15:15 +0000 Subject: 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. --- print/Makefile | 25 ++++++++---- print/a2ps-a4/Makefile | 12 ++++++ print/a2ps-letter/Makefile | 38 +++++------------- print/a2ps43-a4/Makefile | 12 ++++++ print/a2ps43-letter/Makefile | 46 ++++----------------- print/c2ps-letter/Makefile | 28 +++++-------- print/enscript-a4/Makefile | 12 ++++++ print/enscript-letter/Makefile | 86 ++++++---------------------------------- print/enscript-letterdj/Makefile | 12 ++++++ print/lprps-a4/Makefile | 12 ++++++ print/lprps-letter/Makefile | 48 +++++----------------- print/mp-a4/Makefile | 12 ++++++ print/mp-letter/Makefile | 11 ++--- print/psutils-a4/Makefile | 12 ++++++ print/psutils-letter/Makefile | 34 +++++----------- 15 files changed, 163 insertions(+), 237 deletions(-) create mode 100644 print/a2ps-a4/Makefile create mode 100644 print/a2ps43-a4/Makefile create mode 100644 print/enscript-a4/Makefile create mode 100644 print/enscript-letterdj/Makefile create mode 100644 print/lprps-a4/Makefile create mode 100644 print/mp-a4/Makefile create mode 100644 print/psutils-a4/Makefile (limited to 'print') diff --git a/print/Makefile b/print/Makefile index ff4c188..77e104f 100644 --- a/print/Makefile +++ b/print/Makefile @@ -1,22 +1,28 @@ -# $Id: Makefile,v 1.71 1998/11/18 15:52:38 smace Exp $ +# $Id: Makefile,v 1.72 1998/11/18 15:54:20 smace Exp $ # - SUBDIR += a2ps - SUBDIR += a2ps43 + SUBDIR += a2ps-a4 + SUBDIR += a2ps-letter + SUBDIR += a2ps-letterdj + SUBDIR += a2ps43-a4 + SUBDIR += a2ps43-letter SUBDIR += acroread SUBDIR += afm SUBDIR += apsfilter SUBDIR += asprint SUBDIR += bibcard SUBDIR += bibview - SUBDIR += c2ps + SUBDIR += c2ps-a4 + SUBDIR += c2ps-letter SUBDIR += detex SUBDIR += dvi2tty SUBDIR += dvi2xx SUBDIR += dvips SUBDIR += dvips2ascii SUBDIR += dviselect - SUBDIR += enscript + SUBDIR += enscript-a4 + SUBDIR += enscript-letter + SUBDIR += enscript-letterdj SUBDIR += enscriptfonts SUBDIR += freetype SUBDIR += ggv @@ -31,11 +37,13 @@ SUBDIR += klyx SUBDIR += latex SUBDIR += lout - SUBDIR += lprps + SUBDIR += lprps-a4 + SUBDIR += lprps-letter SUBDIR += lyx SUBDIR += makeindex SUBDIR += mgv - SUBDIR += mp + SUBDIR += mp-a4 + SUBDIR += mp-letter SUBDIR += mpage SUBDIR += musixtex SUBDIR += offix-printer @@ -48,7 +56,8 @@ SUBDIR += pkfonts360 SUBDIR += pkfonts400 SUBDIR += pkfonts600 - SUBDIR += psutils + SUBDIR += psutils-a4 + SUBDIR += psutils-letter SUBDIR += rtf2latex SUBDIR += teTeX SUBDIR += teTeX-beta diff --git a/print/a2ps-a4/Makefile b/print/a2ps-a4/Makefile new file mode 100644 index 0000000..912e36a --- /dev/null +++ b/print/a2ps-a4/Makefile @@ -0,0 +1,12 @@ +# New ports collection makefile for: a2ps (a4) +# Version required: 4.10.3 +# Date created: 15 July 1998 +# Whom: Chuck Robey (chuckr@freebsd.org) +# +# $Id$ +# + +PAPERSIZE= a4 +MASTERDIR= ${.CURDIR}/../a2ps-letter + +.include "${MASTERDIR}/Makefile" diff --git a/print/a2ps-letter/Makefile b/print/a2ps-letter/Makefile index 47a73d7..22468ad 100644 --- a/print/a2ps-letter/Makefile +++ b/print/a2ps-letter/Makefile @@ -1,9 +1,9 @@ -# New ports collection makefile for: a2ps +# New ports collection makefile for: a2ps (letter) # Version required: 4.10.3 # Date created: 15 July 1998 # Whom: Chuck Robey (chuckr@freebsd.org) # -# $Id: Makefile,v 1.20 1998/09/19 16:38:36 smace Exp $ +# $Id: Makefile,v 1.21 1998/10/30 08:35:22 asami Exp $ # DISTNAME= a2ps-4.10.3 @@ -13,36 +13,23 @@ MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/ MAINTAINER= chuckr@FreeBSD.org -LOOP_VAR= PAPERSIZE -LOOP_OPTIONS= Letter A4 GNU_CONFIGURE= yes MAN1= a2ps.1 ogonkify.1 card.1 psmandup.1 fixps.1 pdiff.1 -PAPERSIZE?= Letter +PAPERSIZE?= letter +PS!= echo ${PAPERSIZE} | tr l L | tr a A STRIP= -CONFIGURE_ARGS= --with-medium=${PAPERSIZE} +CONFIGURE_ARGS= --with-medium=${PS} -Letter letter: - ${MAKE} PAPERSIZE=Letter - -Letterdj letterdj: - ${MAKE} PAPERSIZE=Letterdj - -A4 a4: - ${MAKE} PAPERSIZE=A4 - -pre-configure: -.if ${PAPERSIZE} != A4 && ${PAPERSIZE} != Letter && ${PAPERSIZE} != Letterdj +.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter && ${PAPERSIZE} != letterdj +.BEGIN: @${ECHO} @${ECHO} "PAPERSIZE incorrect value: ${PAPERSIZE}." @${ECHO} - @${ECHO} "Must specify PAPERSIZE as one of A4, Letter, or Letterdj, either" - @${ECHO} "using setenv, or via Makefile targets of the same name. Note" - @${ECHO} "that each PAPERSIZE has a leading capital letter, and Letterdj" - @${ECHO} "allows a slightly larger margins for DeskJets." - @false + @${ECHO} "Must specify PAPERSIZE as one of a4, letter, or letterdj." + @${ECHO} "letterdj allows a slightly larger margins for DeskJets." + @${FALSE} .endif - ${ECHO} ${PAPERSIZE} > ${WRKDIR}/.media post-install: ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib @@ -50,8 +37,3 @@ post-install: (cd ${WRKSRC}/doc; ${MAKE} install) .include - -.if exists(${WRKDIR}/.media) -PAPERSIZE= -PAPERSIZE!= ${CAT} ${WRKDIR}/.media -.endif diff --git a/print/a2ps43-a4/Makefile b/print/a2ps43-a4/Makefile new file mode 100644 index 0000000..5e815c3 --- /dev/null +++ b/print/a2ps43-a4/Makefile @@ -0,0 +1,12 @@ +# New ports collection makefile for: a2ps (a4) +# Version required: 4.3 +# Date created: 6 November 1994 +# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu) +# +# $Id$ +# + +PAPERSIZE= a4 +MASTERDIR= ${.CURDIR}/../a2ps43-letter + +.include "${MASTERDIR}/Makefile" diff --git a/print/a2ps43-letter/Makefile b/print/a2ps43-letter/Makefile index 57a1217..90e0a2e 100644 --- a/print/a2ps43-letter/Makefile +++ b/print/a2ps43-letter/Makefile @@ -3,7 +3,7 @@ # 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 $ +# $Id: Makefile,v 1.17 1998/10/30 08:35:29 asami Exp $ # DISTNAME= a2ps @@ -15,55 +15,25 @@ 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 +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 +.if ${PAPERSIZE} == letter WIDTH=8.5 HEIGHT=11.0 A4_PAPERSIZE=0 -.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4 -PAPERSIZE=a4 +.elif ${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 +.BEGIN: + @${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" + @${ECHO} "Possible values are: a4 or letter" + @${FALSE} .endif pre-install: diff --git a/print/c2ps-letter/Makefile b/print/c2ps-letter/Makefile index 2a92529..aae94eb 100644 --- a/print/c2ps-letter/Makefile +++ b/print/c2ps-letter/Makefile @@ -1,37 +1,27 @@ -# New ports collection makefile for: c2ps +# New ports collection makefile for: c2ps (letter) # Version required: 4.0 # Date created: 19 March 1997 # Whom: Matthew Hunt # -# $Id: Makefile,v 1.5 1998/04/17 23:26:29 mph Exp $ +# $Id: Makefile,v 1.6 1998/10/30 08:35:31 asami Exp $ # DISTNAME= c2ps-4.0 -PKGNAME= c2ps-${PAPERSIZE:S/A4/a4/:S/LETTER/letter/:S/Letter/letter/}-4.0 +PKGNAME= c2ps-${PAPERSIZE}-4.0 CATEGORIES= print MASTER_SITES= http://www.cs.technion.ac.il/users/c2ps/ MAINTAINER= mph@freebsd.org -LOOP_VAR= PAPERSIZE -LOOP_OPTIONS= letter a4 MAN1= c2ps.1 -MAKE_ENV= DEFAULT_PAPER_TYPE=${PAPERSIZE} +MAKE_ENV= DEFAULT_PAPER_TYPE=${PS} -.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 - -pre-fetch: -.if defined(PAPERSIZE_INVALID) +PAPERSIZE?= letter +PS!= echo ${PAPERSIZE} | awk '{print toupper($$1)}' +.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter +.BEGIN: @${ECHO} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\"" - @${ECHO} "Possible values are: A4 (default), and Letter." + @${ECHO} "Possible values are: a4, and letter." @${FALSE} .endif diff --git a/print/enscript-a4/Makefile b/print/enscript-a4/Makefile new file mode 100644 index 0000000..e097e39 --- /dev/null +++ b/print/enscript-a4/Makefile @@ -0,0 +1,12 @@ +# New ports collection makefile for: enscript (a4) +# Version required: 1.6.1 +# Date created: 24 Jul, 1997 +# Whom: kline +# +# $Id$ +# + +PAPERSIZE= a4 +MASTERDIR= ${.CURDIR}/../enscript-letter + +.include "${MASTERDIR}/Makefile" diff --git a/print/enscript-letter/Makefile b/print/enscript-letter/Makefile index d17a739..0d69f1c 100644 --- a/print/enscript-letter/Makefile +++ b/print/enscript-letter/Makefile @@ -1,9 +1,9 @@ -# New ports collection makefile for: enscript +# New ports collection makefile for: enscript (letter) # Version required: 1.6.1 # Date created: 24 Jul, 1997 # Whom: kline # -# $Id: Makefile,v 1.5 1998/10/30 08:35:33 asami Exp $ +# $Id: Makefile,v 1.6 1998/11/09 01:14:51 steve Exp $ # DISTNAME= enscript-1.6.1 @@ -13,11 +13,9 @@ MASTER_SITES= ${MASTER_SITE_GNU} MAINTAINER= kline@thought.org -LOOP_VAR= PAPERSIZE -LOOP_OPTIONS= A4 Letter Letterdj GNU_CONFIGURE= yes USE_GMAKE= yes -CONFIGURE_ARGS= --disable-nls --with-media=${PAPERSIZE} +CONFIGURE_ARGS= --disable-nls --with-media=${PS} MAKE_FLAGS= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f MAN1= diffpp.1 enscript.1 sliceprint.1 states.1 @@ -26,83 +24,23 @@ STRIP= # If you want to build a static binary, uncomment the following line #LDFLAGS+=-static -.if !defined(PAPERSIZE) -PAPERSIZE=A4 # set default -WIDTH=8.27 -HEIGHT=11.64 -A4_PAPERSIZE=1 -PAPERSIZE_UNSPECIFIED= yes -.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4 -PAPERSIZE=A4 +PAPERSIZE?= letter +PS!= echo ${PAPERSIZE} | tr l L | tr a A + +.if ${PAPERSIZE} == a4 WIDTH=8.27 HEIGHT=11.64 A4_PAPERSIZE=1 -.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER || ${PAPERSIZE} == Letter -PAPERSIZE=Letter +.elif ${PAPERSIZE} == letter WIDTH=8.5 HEIGHT=11.0 A4_PAPERSIZE=0 -.elif ${PAPERSIZE} == Letterdj -.else -PAPERSIZE_INVALID= yes -.endif # not defined PAPERSIZE - -pre-fetch: -.if defined(PAPERSIZE_UNSPECIFIED) - @echo "" - @echo "This port builds the default A4 paper size." - @echo "If you want to select the LETTER papersize for enscript," - @echo "type a ^C now. Then type:" - @echo "" - @echo " % make letter " - @echo "" - @echo "Install your port by typing:" - @echo "" - @echo "make letter-install {or} % make a4-install" - @echo "" - @echo "You can also set the environment variable PAPERSIZE to A4 or" - @echo "letter to configure enscript for these paper sizes" - @sleep 5 -.elif defined(PAPERSIZE_INVALID) - @echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" - @echo "Possible values are: A4 (default) or letter" +.elif ${PAPERSIZE} != letterdj +.BEGIN: + @${EHCO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" + @${EHCO} "Possible values are: a4 or letter or letterdj" @${FALSE} .endif -letter:: - ${MAKE} PAPERSIZE=Letter - -Letter:: - ${MAKE} PAPERSIZE=Letter - -letter-install:: - ${MAKE} PAPERSIZE=Letter install - -Letter-install:: - ${MAKE} PAPERSIZE=Letter install - -a4:: - ${MAKE} PAPERSIZE=A4 - -A4:: - ${MAKE} PAPERSIZE=A4 - -Letterdj:: - ${MAKE} PAPERSIZE=Letterdj - -letterdj:: - ${MAKE} PAPERSIZE=Letterdj - -Letterdj-install:: - ${MAKE} PAPERSIZE=Letterdj install - -letterdj-install:: - ${MAKE} PAPERSIZE=Letterdj install - -a4-install:: - ${MAKE} PAPERSIZE=a4 install - -A4-install:: - ${MAKE} PAPERSIZE=a4 install post-install: .for file in enscript mkafmmap states diff --git a/print/enscript-letterdj/Makefile b/print/enscript-letterdj/Makefile new file mode 100644 index 0000000..39db991 --- /dev/null +++ b/print/enscript-letterdj/Makefile @@ -0,0 +1,12 @@ +# New ports collection makefile for: enscript (letterdj) +# Version required: 1.6.1 +# Date created: 24 Jul, 1997 +# Whom: kline +# +# $Id$ +# + +PAPERSIZE= letterdj +MASTERDIR= ${.CURDIR}/../enscript-letter + +.include "${MASTERDIR}/Makefile" diff --git a/print/lprps-a4/Makefile b/print/lprps-a4/Makefile new file mode 100644 index 0000000..4f36601 --- /dev/null +++ b/print/lprps-a4/Makefile @@ -0,0 +1,12 @@ +# New ports collection makefile for: lprps (a4) +# Version required: 2.50 +# Date created: Sat Aug 3, 1996 +# Whom: David O'Brien (obrien@cs.ucdavis.edu) +# +# $Id$ +# + +PAPERSIZE= a4 +MASTERDIR= ${.CURDIR}/../lprps-letter + +.include "${MASTERDIR}/Makefile" diff --git a/print/lprps-letter/Makefile b/print/lprps-letter/Makefile index 1c05c5d..0fd2340 100644 --- a/print/lprps-letter/Makefile +++ b/print/lprps-letter/Makefile @@ -1,10 +1,10 @@ # ex:ts=8 -# New ports collection makefile for: lprps +# New ports collection makefile for: lprps (letter) # Version required: 2.50 # Date created: Sat Aug 3, 1996 # Whom: David O'Brien (obrien@cs.ucdavis.edu) # -# $Id: Makefile,v 1.4 1997/11/10 11:23:26 asami Exp $ +# $Id: Makefile,v 1.5 1998/10/30 08:35:36 asami Exp $ # DISTNAME= lprps-2.5 @@ -15,47 +15,19 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= obrien@FreeBSD.org -LOOP_VAR= PAPERSIZE -LOOP_OPTIONS= letter a4 -MAKE_FLAGS?= PAPERSIZE=${PAPERSIZE} -f +MAKE_FLAGS?= PAPERSIZE=${PS} -f MAN1= psrev.1 textps.1 MAN8= lprps.8 psif.8 psof.8 -letter:: - ${MAKE} PAPERSIZE=letter +PAPERSIZE?= letter +PS!= echo ${PAPERSIZE} | awk '{print toupper($$1)}' -letter-install:: - ${MAKE} PAPERSIZE=letter install - -a4:: - ${MAKE} PAPERSIZE=a4 - -a4-install:: - ${MAKE} PAPERSIZE=a4 install - - -.if !defined(PAPERSIZE) -PAPERSIZE=LETTER -PAPERSIZE_UNSPECIFIED= yes -.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4 -PAPERSIZE=A4 -.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER -PAPERSIZE=LETTER -.else -PAPERSIZE_INVALID= yes -.endif # not defined PAPERSIZE - -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 +.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter +.BEGIN: + @${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" + @${ECHO} "Possible values are: a4 or letter" + @${FALSE} .endif do-install: diff --git a/print/mp-a4/Makefile b/print/mp-a4/Makefile new file mode 100644 index 0000000..e3a0157 --- /dev/null +++ b/print/mp-a4/Makefile @@ -0,0 +1,12 @@ +# New ports collection makefile for: mp (a4) +# Version required: 3.0.1 +# Date created: 11 July 1996 +# Whom: David O'Brien +# +# $Id$ +# + +PAPERSIZE= a4 +MASTERDIR= ${.CURDIR}/../mp-letter + +.include "${MASTERDIR}/Makefile" diff --git a/print/mp-letter/Makefile b/print/mp-letter/Makefile index 684ad73..cf01e60 100644 --- a/print/mp-letter/Makefile +++ b/print/mp-letter/Makefile @@ -1,9 +1,9 @@ -# New ports collection makefile for: mp +# New ports collection makefile for: mp (letter) # Version required: 3.0.1 # Date created: 11 July 1996 # Whom: David O'Brien # -# $Id: Makefile,v 1.8 1998/09/19 01:40:37 hoek Exp $ +# $Id: Makefile,v 1.9 1998/10/30 08:35:37 asami Exp $ # DISTNAME= mp-3.0.1 @@ -14,17 +14,14 @@ MASTER_SITES= ftp://ftp.NUXI.com/pub/misc/ \ MAINTAINER= obrien@FreeBSD.org -LOOP_VAR= PAPERSIZE -LOOP_OPTIONS= letter a4 WRKSRC= ${WRKDIR}/mp MAN1= mp.1 MLINKS= mp.1 digestp.1 - filep.1 - filofaxp.1 \ - franklinp.1 - mailp.1 - newsp.1 \ - timemanp.1 - timesysp.1 -.if !defined(PAPERSIZE) -PAPERSIZE=letter -.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4 +PAPERSIZE?= letter +.if ${PAPERSIZE} == a4 INSTALL_TARGET= install-a4 .endif diff --git a/print/psutils-a4/Makefile b/print/psutils-a4/Makefile new file mode 100644 index 0000000..c369416 --- /dev/null +++ b/print/psutils-a4/Makefile @@ -0,0 +1,12 @@ +# New ports collection makefile for: psutils (a4) +# Version required: 1.16 +# Date created: 21 September 1994 +# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu) +# +# $Id$ +# + +PAPERSIZE= a4 +MASTERDIR= ${.CURDIR}/../psutils-letter + +.include "${MASTERDIR}/Makefile" diff --git a/print/psutils-letter/Makefile b/print/psutils-letter/Makefile index a85c1dd..4843ac0 100644 --- a/print/psutils-letter/Makefile +++ b/print/psutils-letter/Makefile @@ -1,9 +1,9 @@ -# New ports collection makefile for: psutils +# New ports collection makefile for: psutils (letter) # Version required: 1.16 # Date created: 21 September 1994 # Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu) # -# $Id: Makefile,v 1.16 1998/03/12 16:12:09 jmz Exp $ +# $Id: Makefile,v 1.17 1998/10/30 08:35:38 asami Exp $ # DISTNAME= psutils-p17 @@ -13,8 +13,6 @@ MASTER_SITES= ftp://ftp.dcs.ed.ac.uk/pub/ajcd/ MAINTAINER= jmz@FreeBSD.org -LOOP_VAR= PAPERSIZE -LOOP_OPTIONS= letter a4 WRKSRC= ${WRKDIR}/psutils MAKE_FLAGS?= PAPER=${PAPERSIZE} -f MAN1= psbook.1 psselect.1 pstops.1 epsffit.1 psnup.1 psresize.1 \ @@ -22,21 +20,8 @@ MAN1= psbook.1 psselect.1 pstops.1 epsffit.1 psnup.1 psresize.1 \ fixpspps.1 fixtpps.1 fixwfwps.1 fixwpps.1 fixwwps.1 \ extractres.1 includeres.1 fixscribeps.1 psmerge.1 - -##package:: letter a4 - -letter:: - ${MAKE} PAPERSIZE=letter - -letter-install:: - ${MAKE} PAPERSIZE=letter install - -a4:: - ${MAKE} PAPERSIZE=a4 - - .if !defined(PAPERSIZE) -PAPERSIZE=a4 +PAPERSIZE=letter PAPERSIZE_UNSPECIFIED= yes .else .if ${PAPERSIZE} != A3 && ${PAPERSIZE} != a3 && ${PAPERSIZE} != A4 \ @@ -46,7 +31,11 @@ PAPERSIZE_UNSPECIFIED= yes && ${PAPERSIZE} != ledger && ${PAPERSIZE} != tabloid \ && ${PAPERSIZE} != statement && ${PAPERSIZE} != executive \ && ${PAPERSIZE} != folio && ${PAPERSIZE} != quarto && ${PAPERSIZE} != 10x14 -PAPERSIZE_INVALID= yes +.BEGIN: + @${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" + @${ECHO} "Possible values are: A3, A4 (default), A5, B5, letter, legal," + @${ECHO} " ledger, tabloid, statement, executive, folio, quarto, and 10x14." + @${FALSE} .endif .endif @@ -55,13 +44,8 @@ pre-fetch: @echo "Defaulting to ${PAPERSIZE} sized paper." @echo "" @echo "Set the environment variable PAPERSIZE if you want to use other sizes." - @echo "Possible values are: A3, A4 (default), A5, B5, letter, legal," + @echo "Possible values are: A3, A4, A5, B5, letter, legal," @echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14." -.elif defined(PAPERSIZE_INVALID) - @echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" - @echo "Possible values are: A3, A4 (default), A5, B5, letter, legal," - @echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14." - @${FALSE} .endif .include -- cgit v1.1