From 08a89414290ee927a6fe897b8b9acd15fb94c860 Mon Sep 17 00:00:00 2001
From: Jean-Marc Zucconi <jmz@FreeBSD.org>
Date: Thu, 17 Nov 1994 01:04:17 +0000
Subject: Makefile: USE_INTERACTIVE defined, use ${PREFIX}, reflect changes in 
          bsd.port.mk configure: use ${PREFIX} use ${PREFIX}

---
 print/xdvi/scripts/configure | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'print/xdvi')

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;
-- 
cgit v1.2.3