diff options
Diffstat (limited to 'print')
-rw-r--r-- | print/dvips/scripts/configure | 42 | ||||
-rw-r--r-- | print/psutils-letter/scripts/configure | 2 | ||||
-rw-r--r-- | print/tex/scripts/configure | 4 | ||||
-rw-r--r-- | print/xdvi/scripts/configure | 25 |
4 files changed, 31 insertions, 42 deletions
diff --git a/print/dvips/scripts/configure b/print/dvips/scripts/configure index 7f0bbfc8d672..051b660cfcd3 100644 --- a/print/dvips/scripts/configure +++ b/print/dvips/scripts/configure @@ -1,23 +1,19 @@ #!/bin/sh -if [ $# != 3 ]; then exit 1; fi - -SRCDIR=$3 - # paper size, default is no nor A4 A4=n #default font cache directory: must be world writable CACHE=/tmp -if [ ! -f $SRCDIR/MakeTeXPK.orig ]; then - mv $SRCDIR/MakeTeXPK $SRCDIR/MakeTeXPK.orig || exit 1 +if [ ! -f ${WRKSRC}/MakeTeXPK.orig ]; then + mv ${WRKSRC}/MakeTeXPK ${WRKSRC}/MakeTeXPK.orig || exit 1 fi #find the resolutions -RES=`awk '{if(/test $BDPI/) printf "%s ",$5}' < $SRCDIR/MakeTeXPK.orig` +RES=`awk '{if(/test $BDPI/) printf "%s ",$5}' < ${WRKSRC}/MakeTeXPK.orig` # and the corresponding modes -MODES=`awk -F= '{if(/MODE=[a-zA-Z]/) print $2}' < $SRCDIR/MakeTeXPK.orig` +MODES=`awk -F= '{if(/MODE=[a-zA-Z]/) print $2}' < ${WRKSRC}/MakeTeXPK.orig` set $MODES echo "I need to set the mode of our printing/output device for the resolutions" echo "$RES dpi. (the mode must be in your modes.mf file)" @@ -35,13 +31,13 @@ read answ; if [ "$answ" != "" ]; then CACHE=$answ; fi sed -e s:/usr/lib/tex:/usr/local/lib/texmf: \ -e s:/LocalLibrary/Fonts/TeXFonts:$CACHE: \ - $SUBST <$SRCDIR/MakeTeXPK.orig >$SRCDIR/MakeTeXPK + $SUBST <${WRKSRC}/MakeTeXPK.orig >${WRKSRC}/MakeTeXPK #configure config.ps -if [ ! -f $SRCDIR/config.ps.orig ]; then - mv $SRCDIR/config.ps $SRCDIR/config.ps.orig || exit 1 +if [ ! -f ${WRKSRC}/config.ps.orig ]; then + mv ${WRKSRC}/config.ps ${WRKSRC}/config.ps.orig || exit 1 fi -RES=`awk '{if (/^D /) print $2}' <$SRCDIR/config.ps.orig` +RES=`awk '{if (/^D /) print $2}' <${WRKSRC}/config.ps.orig` echo -n "what is the resolution of your printer (in dpi) [$RES]: "; read res; if [ "$res" = "" ]; then res=$RES; fi echo -n "do you want to use A4 paper? [$A4]: " @@ -49,20 +45,20 @@ read answ; if [ "$answ" = "" ]; then answ=$A4; fi if [ $answ = y ]; then sed -e 's/\(^\*\)\(.*A4\)/\2/' -e 's/^@ letterSize/*@ letterSize/' \ - -e "s/^D $RES/D $res/" <$SRCDIR/config.ps.orig > $SRCDIR/config.ps + -e "s/^D $RES/D $res/" <${WRKSRC}/config.ps.orig > ${WRKSRC}/config.ps else - sed -e "s/^D $RES/D $res/" <$SRCDIR/config.ps.orig > $SRCDIR/config.ps + sed -e "s/^D $RES/D $res/" <${WRKSRC}/config.ps.orig > ${WRKSRC}/config.ps fi #makefile -echo "TEXDIR=/usr/local/lib/texmf" >> $SRCDIR/Makefile || exit 1; -echo "LOCALDIR=$CACHE" >> $SRCDIR/Makefile -echo "TEXMACRODIR=\$(TEXDIR)/tex" >> $SRCDIR/Makefile -echo "FIGPATH = .:..:\$(TEXDIR)/tex" >> $SRCDIR/Makefile -echo "MANDIR=/usr/local/man/man1" >> $SRCDIR/Makefile -echo "DEFS= -DTPIC -DDEBUG -DDEFRES=$res" >> $SRCDIR/Makefile -echo "OPT = -O2 -funsigned-char" >> $SRCDIR/Makefile -echo "BINDIR=/usr/local/bin" >> $SRCDIR/Makefile -echo "FLIBS=-lm" >> $SRCDIR/Makefile +echo "TEXDIR=/usr/local/lib/texmf" >> ${WRKSRC}/Makefile || exit 1; +echo "LOCALDIR=$CACHE" >> ${WRKSRC}/Makefile +echo "TEXMACRODIR=\$(TEXDIR)/tex" >> ${WRKSRC}/Makefile +echo "FIGPATH = .:..:\$(TEXDIR)/tex" >> ${WRKSRC}/Makefile +echo "MANDIR=/usr/local/man/man1" >> ${WRKSRC}/Makefile +echo "DEFS= -DTPIC -DDEBUG -DDEFRES=$res" >> ${WRKSRC}/Makefile +echo "OPT = -O2 -funsigned-char" >> ${WRKSRC}/Makefile +echo "BINDIR=/usr/local/bin" >> ${WRKSRC}/Makefile +echo "FLIBS=-lm" >> ${WRKSRC}/Makefile exit 0; diff --git a/print/psutils-letter/scripts/configure b/print/psutils-letter/scripts/configure index 1c702dec2aad..f740baf98d37 100644 --- a/print/psutils-letter/scripts/configure +++ b/print/psutils-letter/scripts/configure @@ -1,3 +1,3 @@ #!/bin/sh -chmod +x $3/maketext +chmod +x ${WRKSRC}/maketext exit 0 diff --git a/print/tex/scripts/configure b/print/tex/scripts/configure index d4d90c14bc7c..e29ded4b542a 100644 --- a/print/tex/scripts/configure +++ b/print/tex/scripts/configure @@ -1,13 +1,11 @@ #!/bin/sh -if [ $# != 3 ]; then exit 1; fi - # # The subdirectory searching in kpathsearch sometimes fails (don't know why) # so let's disable the feature (It can be reenabled with the proper environment # variables though. # -cd $3/kpathsea || exit 1; +cd ${WRKSRC}/kpathsea || exit 1; mv paths.h.in paths.h.in.orig || exit 1; sed -e s://:/: <paths.h.in.orig >paths.h.in || exit 1; diff --git a/print/xdvi/scripts/configure b/print/xdvi/scripts/configure index 8a19b3a88239..08fcea3324be 100644 --- a/print/xdvi/scripts/configure +++ b/print/xdvi/scripts/configure @@ -1,22 +1,17 @@ #!/bin/sh -if [ $# != 3 ]; then exit 1; fi - -SRCDIR=$3 - # paper size, default is no nor A4 A4=n #default font cache directory: must be world writable CACHE=/tmp - -if [ ! -f $SRCDIR/MakeTeXPK.orig ]; then - mv $SRCDIR/MakeTeXPK $SRCDIR/MakeTeXPK.orig || exit 1 +if [ ! -f ${WRKSRC}/MakeTeXPK.orig ]; then + mv ${WRKSRC}/MakeTeXPK ${WRKSRC}/MakeTeXPK.orig || exit 1 fi #find the resolutions -RES=`awk '{if(/test $BDPI/) printf "%s ",$5}' < $SRCDIR/MakeTeXPK.orig` +RES=`awk '{if(/test $BDPI/) printf "%s ",$5}' < ${WRKSRC}/MakeTeXPK.orig` # and the corresponding modes -MODES=`awk -F= '{if(/MODE=[a-zA-Z]/) print $2}' < $SRCDIR/MakeTeXPK.orig` +MODES=`awk -F= '{if(/MODE=[a-zA-Z]/) print $2}' < ${WRKSRC}/MakeTeXPK.orig` set $MODES echo "I need to set the mode of our printing/output device for the resolutions" echo "$RES dpi. (the mode must be in your modes.mf file)" @@ -34,13 +29,13 @@ read answ; if [ "$answ" != "" ]; then CACHE=$answ; fi sed -e s:/usr/lib/tex:/usr/local/lib/texmf: \ -e s:/LocalLibrary/Fonts/TeXFonts:$CACHE: \ - $SUBST <$SRCDIR/MakeTeXPK.orig >$SRCDIR/MakeTeXPK + $SUBST <${WRKSRC}/MakeTeXPK.orig >${WRKSRC}/MakeTeXPK # Imakefile -chmod +w $SRCDIR/Imakefile -echo "OSDEFS=" >> $SRCDIR/Imakefile || exit 1; -echo "OPTIONDEFS=-DUSE_PK -DGREY -DPS_GS -DMAKEPK -DBUTTONS" >> $SRCDIR/Imakefile -echo "DEFAULT_FONT_PATH=/usr/local/lib/texmf/fonts/pk:$CACHE/pk" >> $SRCDIR/Imakefile -echo "DEFAULT_VF_PATH=/usr/local/lib/texmf/fonts/vf" >> $SRCDIR/Imakefile +chmod +w ${WRKSRC}/Imakefile +echo "OSDEFS=" >> ${WRKSRC}/Imakefile || exit 1; +echo "OPTIONDEFS=-DUSE_PK -DGREY -DPS_GS -DMAKEPK -DBUTTONS" >> ${WRKSRC}/Imakefile +echo "DEFAULT_FONT_PATH=/usr/local/lib/texmf/fonts/pk:$CACHE/pk" >> ${WRKSRC}/Imakefile +echo "DEFAULT_VF_PATH=/usr/local/lib/texmf/fonts/vf" >> ${WRKSRC}/Imakefile exit 0; |