diff options
author | tonio <tonio@pkgsrc.org> | 2005-10-10 14:51:02 +0000 |
---|---|---|
committer | tonio <tonio@pkgsrc.org> | 2005-10-10 14:51:02 +0000 |
commit | 1a2448ba3c6056db9bd69e7cead7f1df0b0b8ef6 (patch) | |
tree | a7dabbeeaa01e545fc6ae58c6fefdc10bb787c72 /print/teTeX1-bin | |
parent | 8aa5044383b450803c294e9db57adb877454bda1 (diff) | |
download | pkgsrc-1a2448ba3c6056db9bd69e7cead7f1df0b0b8ef6.tar.gz |
remove the use of :tl modifier for PAPERSIZE, with a trick taken from teTeX3-bin
Diffstat (limited to 'print/teTeX1-bin')
-rw-r--r-- | print/teTeX1-bin/Makefile | 12 |
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 |