From 94e78ca9227d84e35d4250e829ffd8b8e841f8a2 Mon Sep 17 00:00:00 2001 From: frueauf Date: Sun, 22 Feb 1998 20:37:58 +0000 Subject: - include mk.conf/make.conf to get user defined PAPERSIZE - add post-install rule that strips the binaries - some reformating and echo->${ECHO} --- print/psutils/Makefile | 62 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 25 deletions(-) (limited to 'print/psutils') diff --git a/print/psutils/Makefile b/print/psutils/Makefile index 1a10791a07f..f857c2132b8 100644 --- a/print/psutils/Makefile +++ b/print/psutils/Makefile @@ -3,7 +3,7 @@ # Date created: 21 September 1994 # Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu) # -# $NetBSD: Makefile,v 1.1.1.1 1998/02/22 20:32:08 frueauf Exp $ +# $NetBSD: Makefile,v 1.2 1998/02/22 20:37:58 frueauf Exp $ # FreeBSD Id: Makefile,v 1.15 1998/01/08 18:52:13 fenner Exp # @@ -14,7 +14,7 @@ MASTER_SITES= ftp://ftp.dcs.ed.ac.uk/pub/ajcd/ MAINTAINER= jmz@FreeBSD.org -MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to letter a4 +MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to letter A4 WRKSRC= ${WRKDIR}/psutils MAKE_FLAGS?= PAPER=${PAPERSIZE} -f MAN1= psbook.1 psselect.1 pstops.1 epsffit.1 psnup.1 psresize.1 \ @@ -22,46 +22,58 @@ 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 +# Include local make config file here. It is essential to have this +# precede any override targets (those that override defaults in +# that test variables that may be set here. Note that +# this inclusion is otherwise redundant, since includes +# , which includes it. -##package:: letter a4 - -letter:: - ${MAKE} PAPERSIZE=letter - -letter-install:: - ${MAKE} PAPERSIZE=letter install - -a4:: - ${MAKE} PAPERSIZE=a4 - +OPSYS!= uname -s +.if (${OPSYS} == "FreeBSD") +.if exists(/etc/make.conf) +.include "/etc/make.conf" +.endif +.else +.if exists(/etc/mk.conf) +.include "/etc/mk.conf" +.endif +.endif .if !defined(PAPERSIZE) -PAPERSIZE=a4 +PAPERSIZE=A4 PAPERSIZE_UNSPECIFIED= yes .else .if ${PAPERSIZE} != A3 && ${PAPERSIZE} != a3 && ${PAPERSIZE} != A4 \ - && ${PAPERSIZE} != a4 && ${PAPERSIZE} != A5 && ${PAPERSIZE} != a5 \ + && ${PAPERSIZE} != a4 && ${PAPERSIZE} != A5 && ${PAPERSIZE} != a5 \ && ${PAPERSIZE} != B5 && ${PAPERSIZE} != b5 \ && ${PAPERSIZE} != letter && ${PAPERSIZE} != legal \ && ${PAPERSIZE} != ledger && ${PAPERSIZE} != tabloid \ && ${PAPERSIZE} != statement && ${PAPERSIZE} != executive \ - && ${PAPERSIZE} != folio && ${PAPERSIZE} != quarto && ${PAPERSIZE} != 10x14 + && ${PAPERSIZE} != folio && ${PAPERSIZE} != quarto \ + && ${PAPERSIZE} != 10x14 PAPERSIZE_INVALID= yes .endif .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: A3, A4 (default), A5, B5, letter, legal," - @echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14." + @${ECHO} "Defaulting to ${PAPERSIZE} sized paper." + @${ECHO} "" + @${ECHO} "Set the environment variable PAPERSIZE if you want to use" + @${ECHO} "other sizes. Possible values are:" + @${ECHO} " A3, A4 (default), A5, B5, letter, legal, ledger, tabloid," + @${ECHO} " 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." - @/usr/bin/false + @${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" + @${ECHO} "Possible values are:" + @${ECHO} " A3, A4 (default), A5, B5, letter, legal, ledger, tabloid," + @${ECHO} " statement, executive, folio, quarto, and 10x14." + @${FALSE} .endif +post-install: +.for file in epsffit psbook psnup psresize psselect pstops + strip ${PREFIX}/bin/${file} +.endfor + .include -- cgit v1.2.3