summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2005-10-10 14:51:02 +0000
committertonio <tonio@pkgsrc.org>2005-10-10 14:51:02 +0000
commitdff74caa08e730d107c52c5bd1a970ec9d7e3940 (patch)
treea7dabbeeaa01e545fc6ae58c6fefdc10bb787c72 /print
parent8b6ab1c9c71fc6b74707518eca16547d12ef11a5 (diff)
downloadpkgsrc-dff74caa08e730d107c52c5bd1a970ec9d7e3940.tar.gz
remove the use of :tl modifier for PAPERSIZE, with a trick taken from teTeX3-bin
Diffstat (limited to 'print')
-rw-r--r--print/teTeX1-bin/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/print/teTeX1-bin/Makefile b/print/teTeX1-bin/Makefile
index ab3fc1a9048..dbbd976c989 100644
--- a/print/teTeX1-bin/Makefile
+++ b/print/teTeX1-bin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2005/09/30 22:01:33 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2005/10/10 14:51:02 tonio Exp $
DISTNAME= teTeX-src-1.0.7
PKGNAME= teTeX-bin-1.0.7
@@ -53,8 +53,12 @@ CONFIGURE_ARGS+= --with-zlib-libdir=${BUILDLINK_PREFIX.zlib}/lib
CONFLICTS+= coreutils-[0-9]*
.endif
-.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
+.if defined(PAPERSIZE)
+LOWER_PAPERSIZE_cmd= ${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'
+LOWER_PAPERSIZE= ${LOWER_PAPERSIZE_cmd:sh}
+. if ${PAPERSIZE} == "A4"
CONFIGURE_ARGS+= --enable-a4
+. endif
.endif
.if ${OPSYS} != "SunOS"
@@ -79,11 +83,11 @@ OWN_DIRS_PERMS+= ${TEXFONTSDIR}/tfm ${ROOT_USER} ${ROOT_GROUP} 1777
post-install:
@${RM} ${PREFIX}/share/texmf/web2c/*.log
.if defined(PAPERSIZE)
- ${LOCALBASE}/bin/texconfig dvips paper ${PAPERSIZE:tl}
+ ${LOCALBASE}/bin/texconfig dvips paper ${LOWER_PAPERSIZE}
. if ${PAPERSIZE} == "Letter"
${LOCALBASE}/bin/texconfig xdvi us
. else
- ${LOCALBASE}/bin/texconfig xdvi ${PAPERSIZE:tl}
+ ${LOCALBASE}/bin/texconfig xdvi ${LOWER_PAPERSIZE}
. endif
.endif
${LOCALBASE}/bin/texconfig font ro