diff options
author | agc <agc@pkgsrc.org> | 1998-02-23 14:27:51 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-02-23 14:27:51 +0000 |
commit | 7718c4f85baa804d2dc076fe467d5279c218e0d6 (patch) | |
tree | 5fa976e492ff2885bef2a684c8a047fa585ac2bb /print/enscript | |
parent | c498e6b3180c576cad540de32334b24d7719d48f (diff) | |
download | pkgsrc-7718c4f85baa804d2dc076fe467d5279c218e0d6.tar.gz |
Don't include /etc/mk.conf explicitly. It's not necessary.
Diffstat (limited to 'print/enscript')
-rw-r--r-- | print/enscript/Makefile | 127 |
1 files changed, 25 insertions, 102 deletions
diff --git a/print/enscript/Makefile b/print/enscript/Makefile index b7108469253..87af43fc680 100644 --- a/print/enscript/Makefile +++ b/print/enscript/Makefile @@ -3,7 +3,7 @@ # Date created: 24 Jul, 1997 # Whom: kline # -# $NetBSD: Makefile,v 1.2 1998/02/22 17:21:41 frueauf Exp $ +# $NetBSD: Makefile,v 1.3 1998/02/23 14:27:51 agc Exp $ # FreeBSD Id: Makefile,v 1.4 1997/11/27 08:10:30 tg Exp # @@ -14,113 +14,36 @@ MASTER_SITES= ${MASTER_SITE_GNU} MAINTAINER= kline@thought.org -MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter A4 -GNU_CONFIGURE= 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 +MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter or A4 +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --disable-nls --with-media=${PAPERSIZE} +CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" +MAKE_ENV+= `${CAT} ${PAPER}` 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 -# <bsd.port.mk> that test variables that may be set here. Note that -# this inclusion is otherwise redundant, since <bsd.port.mk> includes -# <bsd.own.mk>, 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 -HEIGHT=11.64 -A4_PAPERSIZE=1 -PAPERSIZE_UNSPECIFIED= yes -.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4 -PAPERSIZE=A4 -WIDTH=8.27 -HEIGHT=11.64 -A4_PAPERSIZE=1 -.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER || ${PAPERSIZE} == Letter -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" - @${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 +PAPERSIZE?= A4 +PAPER= ${.CURDIR}/${WRKDIR:T}/PaperSize + +pre-configure: + @case "X${PAPERSIZE}" in \ + XA4) \ + ${ECHO} "WIDTH=8.27 HEIGHT=11.64" > ${PAPER}; \ + ;; \ + XLetter) \ + ${ECHO} "WIDTH=8.5 HEIGHT=11.0" > ${PAPER}; \ + ;; \ + XLetterdj) \ + ;; \ + *) \ + @${ECHO} "Error: PAPERSIZE invalid: \"${PAPERSIZE}\""; \ + @${ECHO} "Possible values are: A4 (default) or Letter";\ + ${FALSE}; \ + ;; \ + esac post-install: .for file in enscript mkafmmap states |