pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print Avoid using != to define LOWER_PAPERSIZE .. use ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/42d1c2e11b93
branches:  trunk
changeset: 493184:42d1c2e11b93
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Apr 28 23:23:41 2005 +0000

description:
Avoid using != to define LOWER_PAPERSIZE .. use :sh instead to defer it
until the make targets are invoked.  This avoids needing ${ECHO} and ${TR}
in the top-level make.

diffstat:

 print/teTeX-bin/Makefile  |  5 +++--
 print/teTeX3-bin/Makefile |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 19e4112ad03e -r 42d1c2e11b93 print/teTeX-bin/Makefile
--- a/print/teTeX-bin/Makefile  Thu Apr 28 23:17:53 2005 +0000
+++ b/print/teTeX-bin/Makefile  Thu Apr 28 23:23:41 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.62 2005/03/01 23:03:04 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.63 2005/04/28 23:23:41 jlam Exp $
 
 DISTNAME=      tetex-src-${TETEX_BIN_VERS}
 PKGNAME=       teTeX-bin-${TETEX_BIN_VERS}
@@ -40,7 +40,8 @@
 .endif
 
 .if defined(PAPERSIZE)
-LOWER_PAPERSIZE!=      ${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'
+LOWER_PAPERSIZE_cmd=   ${ECHO} ${PAPERSIZE:Q} | ${TR} '[A-Z]' '[a-z]'
+LOWER_PAPERSIZE=       ${LOWER_PAPERSIZE_cmd:sh}
 .endif
 
 post-install:
diff -r 19e4112ad03e -r 42d1c2e11b93 print/teTeX3-bin/Makefile
--- a/print/teTeX3-bin/Makefile Thu Apr 28 23:17:53 2005 +0000
+++ b/print/teTeX3-bin/Makefile Thu Apr 28 23:23:41 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2005/04/10 21:52:37 schwarz Exp $
+# $NetBSD: Makefile,v 1.5 2005/04/28 23:25:14 jlam Exp $
 
 DISTNAME=      tetex-src-3.0
 PKGNAME=       ${DISTNAME:C/tetex/teTeX/:C/src/bin/}
@@ -25,7 +25,8 @@
 CONFIGURE_ARGS+=       --without-texinfo --without-texi2html
 
 .if defined(PAPERSIZE)
-LOWER_PAPERSIZE!=      ${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'
+LOWER_PAPERSIZE_cmd=   ${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'
+LOWER_PAPERSIZE=       ${LOWER_PAPERSIZE_cmd:sh}
 .endif
 
 post-install:



Home | Main Index | Thread Index | Old Index