From 4c842848b221bf2b1974142dd355804d6f5d8561 Mon Sep 17 00:00:00 2001 From: frueauf Date: Sun, 22 Feb 1998 17:21:41 +0000 Subject: - don't use gmake, works with ours too - add missing man page to MAN1 - addjust CONFIGURE_ENV - include mk.conf/make.conf to get user defined PAPERSIZE - s/echo/${ECHO}/ - s/false/${FALSE} --- print/enscript/Makefile | 54 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 18 deletions(-) (limited to 'print/enscript') diff --git a/print/enscript/Makefile b/print/enscript/Makefile index 9b2d5ae20ec..b7108469253 100644 --- a/print/enscript/Makefile +++ b/print/enscript/Makefile @@ -3,7 +3,7 @@ # Date created: 24 Jul, 1997 # Whom: kline # -# $NetBSD: Makefile,v 1.1.1.1 1998/02/22 17:15:35 frueauf Exp $ +# $NetBSD: Makefile,v 1.2 1998/02/22 17:21:41 frueauf Exp $ # FreeBSD Id: Makefile,v 1.4 1997/11/27 08:10:30 tg Exp # @@ -16,16 +16,33 @@ MAINTAINER= kline@thought.org MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter A4 GNU_CONFIGURE= yes -USE_GMAKE= yes CONFIGURE_ARGS= --disable-nls --with-media=${PAPERSIZE} +CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" MAKE_FLAGS= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f -MAN1= enscript.1 sliceprint.1 states.1 +MAN1= diffpp.1 enscript.1 sliceprint.1 states.1 STRIP= # If you want to build a static binary, uncomment the following line #LDFLAGS+=-static +# 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. + +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 # set default WIDTH=8.27 @@ -49,25 +66,26 @@ PAPERSIZE_INVALID= yes 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" + @${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" + @${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" + @${ECHO} "Possible values are: A4 (default) or Letter" @${FALSE} .endif + letter:: ${MAKE} PAPERSIZE=Letter -- cgit v1.2.3