aboutsummaryrefslogtreecommitdiffstats
path: root/print/xdvi
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1997-03-10 06:52:25 +0800
committerjmz <jmz@FreeBSD.org>1997-03-10 06:52:25 +0800
commitd3430abfbd1d6099463061c926eabe2251e27bab (patch)
treec107c2b280d02615065e547ccf4c9b36a3402c29 /print/xdvi
parentf393f5e62868a92d2460d492ad8dc6372c752f3e (diff)
downloadfreebsd-ports-gnome-d3430abfbd1d6099463061c926eabe2251e27bab.tar.gz
freebsd-ports-gnome-d3430abfbd1d6099463061c926eabe2251e27bab.tar.zst
freebsd-ports-gnome-d3430abfbd1d6099463061c926eabe2251e27bab.zip
Skip the questions and make the port non interactive if PACKAGE_BUILDING
is defined. Requested by: asami
Diffstat (limited to 'print/xdvi')
-rw-r--r--print/xdvi/Makefile9
-rw-r--r--print/xdvi/scripts/configure14
2 files changed, 18 insertions, 5 deletions
diff --git a/print/xdvi/Makefile b/print/xdvi/Makefile
index 68d9c2bff0ab..4622ef9ba631 100644
--- a/print/xdvi/Makefile
+++ b/print/xdvi/Makefile
@@ -3,7 +3,7 @@
# Date created: 1 October 1994
# Whom: jmz
#
-# $Id: Makefile,v 1.21 1996/11/18 09:54:49 asami Exp $
+# $Id: Makefile,v 1.22 1996/11/30 10:41:21 asami Exp $
#
DISTNAME= xdvi-20
@@ -18,9 +18,12 @@ MAINTAINER= jmz@FreeBSD.org
DIST_SUBDIR= xdvi # to share distfiles with japanese/xdvi
USE_IMAKE= yes
USE_GMAKE= yes
-IS_INTERACTIVE= yes
-
XMKMF= xmkmf
+.if defined(PACKAGE_BUILDING)
+SCRIPTS_ENV= PACKAGE_BUILDING=${PACKAGE_BUILDING}
+.else
+IS_INTERACTIVE= yes
+.endif
do-install:
@${MKDIR} ${PREFIX}/man/man1
diff --git a/print/xdvi/scripts/configure b/print/xdvi/scripts/configure
index 9e64bc431f27..39fcd2246b6d 100644
--- a/print/xdvi/scripts/configure
+++ b/print/xdvi/scripts/configure
@@ -1,5 +1,15 @@
#!/bin/sh
+if [ X$PACKAGE_BUILDING = X ]; then
+ READ=read
+else
+ READ=_read
+fi
+_read () {
+ echo
+ answ=""
+}
+
# paper size, default is not A4
A4=n
@@ -28,7 +38,7 @@ echo "$RES dpi. (the mode must be in your modes.mf file)"
SUBST=
for i in $RES; do
echo -n "mode for $i dpi [$1]: ";
- read answ; if [ "$answ" = "" ]; then answ=$1; fi
+ $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=\"/"
@@ -44,7 +54,7 @@ echo "don't want to make this directory world writable, then you"
echo "can choose eg. /tmp. Then you will have to periodically move "
echo "the files to $CACHE/pk."
echo -n "font directory [$CACHE]: "
-read answ; if [ "$answ" != "" ]; then
+$READ answ; if [ "$answ" != "" ]; then
CACHE=$answ;
else
echo "mkdir -p $CACHE/pk; chmod 1777 $CACHE/pk" > $SCRIPTDIR/post-install