aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/iv
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-10-04 23:12:57 +0800
committerjkh <jkh@FreeBSD.org>1994-10-04 23:12:57 +0800
commitc78727d9cdecf0e15ee634abc6daed14492ac621 (patch)
treecb45fd1a644cc18c8c138010fbcf68f3f16e389e /x11-toolkits/iv
parent5dd6940f08023612e64f9e143ff1cec3e1e97d60 (diff)
downloadfreebsd-ports-gnome-c78727d9cdecf0e15ee634abc6daed14492ac621.tar.gz
freebsd-ports-gnome-c78727d9cdecf0e15ee634abc6daed14492ac621.tar.zst
freebsd-ports-gnome-c78727d9cdecf0e15ee634abc6daed14492ac621.zip
These are my changes to support the new argument-less configure scripts.
Diffstat (limited to 'x11-toolkits/iv')
-rw-r--r--x11-toolkits/iv/scripts/configure19
1 files changed, 4 insertions, 15 deletions
diff --git a/x11-toolkits/iv/scripts/configure b/x11-toolkits/iv/scripts/configure
index 25f71cd4487c..4caffef6f41a 100644
--- a/x11-toolkits/iv/scripts/configure
+++ b/x11-toolkits/iv/scripts/configure
@@ -1,22 +1,11 @@
#!/bin/sh
#
-if [ $# -ne 3 ]; then
- echo "This script should only be run by the Makefile."
- exit 1
-fi
-
-# First arg is top level ports directory, second is current directory,
-# third is the directory containing the dist.
-#
-PDIR=$1
-CDIR=$2
-WDIR=$3
-touch ${WDIR}/src/config/freebsd.cf
-find ${WDIR} -name Makefile -print | xargs rm
+touch ${WRKSRC}/src/config/freebsd.cf
+find ${WRKSRC} -name Makefile -print | xargs rm
xpath=`/usr/bin/which imake 2>/dev/null`
if [ -n $xpath ]; then
xpath=`echo $xpath | sed 's;/bin/imake$;;'`
- sed "s;/usr/X386;$xpath;" ${WDIR}/makefile >${WDIR}/makefile.foo
- mv ${WDIR}/makefile.foo ${WDIR}/makefile
+ sed "s;/usr/X386;$xpath;" ${WRKSRC}/makefile >${WRKSRC}/makefile.foo
+ mv ${WRKSRC}/makefile.foo ${WRKSRC}/makefile
fi