summaryrefslogtreecommitdiff
path: root/print/xdvi
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>1994-11-17 01:04:17 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>1994-11-17 01:04:17 +0000
commit08a89414290ee927a6fe897b8b9acd15fb94c860 (patch)
tree7a3c00b7847108c9ac8b4a593441a8ed2c8455d7 /print/xdvi
parentMakefile: USE_INTERACTIVE defined, use ${PREFIX}, reflect changes in (diff)
Makefile: USE_INTERACTIVE defined, use ${PREFIX}, reflect changes in
bsd.port.mk configure: use ${PREFIX} use ${PREFIX}
Notes
Notes: svn path=/head/; revision=393
Diffstat (limited to 'print/xdvi')
-rw-r--r--print/xdvi/scripts/configure11
1 files changed, 7 insertions, 4 deletions
diff --git a/print/xdvi/scripts/configure b/print/xdvi/scripts/configure
index 08fcea3324be..9cfff05f76b2 100644
--- a/print/xdvi/scripts/configure
+++ b/print/xdvi/scripts/configure
@@ -1,6 +1,6 @@
#!/bin/sh
-# paper size, default is no nor A4
+# paper size, default is not A4
A4=n
#default font cache directory: must be world writable
CACHE=/tmp
@@ -20,6 +20,9 @@ for i in $RES; do
echo -n "mode for $i dpi [$1]: ";
read answ; if [ "$answ" = "" ]; then answ=$1; fi
SUBST="$SUBST -e s/MODE=$1/MODE=$answ/"
+ if [ $i = 600 -a $answ != imagen ]; then
+ SUBST="$SUBST -e s/MAG=\"/_MAG=\"/"
+ fi
shift
done
@@ -27,7 +30,7 @@ echo "Choose a font cache directory for automatic font generation"
echo -n "(this directory must be world writable) [$CACHE]: "
read answ; if [ "$answ" != "" ]; then CACHE=$answ; fi
-sed -e s:/usr/lib/tex:/usr/local/lib/texmf: \
+sed -e s:/usr/lib/tex:$PREFIX/lib/texmf: \
-e s:/LocalLibrary/Fonts/TeXFonts:$CACHE: \
$SUBST <${WRKSRC}/MakeTeXPK.orig >${WRKSRC}/MakeTeXPK
@@ -36,6 +39,6 @@ sed -e s:/usr/lib/tex:/usr/local/lib/texmf: \
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
+echo "DEFAULT_FONT_PATH=$PREFIX/lib/texmf/fonts/pk:$CACHE/pk" >> ${WRKSRC}/Imakefile
+echo "DEFAULT_VF_PATH=$PREFIX/lib/texmf/fonts/vf" >> ${WRKSRC}/Imakefile
exit 0;