summaryrefslogtreecommitdiff
path: root/lang/p2c/scripts/configure
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-10-04 15:12:57 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-10-04 15:12:57 +0000
commitdeab9494fa6cf32254d135ebd75d00f544208751 (patch)
tree9ca8c8a43c7a2bd2362c9a2c25b2248ef64a0861 /lang/p2c/scripts/configure
parentAdd games hierarchy. (diff)
These are my changes to support the new argument-less configure scripts.
Notes
Notes: svn path=/head/; revision=170
Diffstat (limited to 'lang/p2c/scripts/configure')
-rw-r--r--lang/p2c/scripts/configure10
1 files changed, 4 insertions, 6 deletions
diff --git a/lang/p2c/scripts/configure b/lang/p2c/scripts/configure
index 5ff74d5135f5..eab3c4597275 100644
--- a/lang/p2c/scripts/configure
+++ b/lang/p2c/scripts/configure
@@ -1,16 +1,14 @@
#!/bin/sh
-if [ $# != 3 ]; then exit 1; fi
-
-cat >>$3/Makefile <<END || exit 1;
+cat >>${WRKSRC}/Makefile <<END || exit 1;
all:
cd src; make OPT=-O
END
-mv $3/src/p2cc.perl $3/src/p2cc.perl.orig || exit 1;
-sed -e 1s/--.*// < $3/src/p2cc.perl.orig > $3/src/p2cc.perl || exit 1;
+mv ${WRKSRC}/src/p2cc.perl ${WRKSRC}/src/p2cc.perl.orig || exit 1;
+sed -e 1s/--.*// < ${WRKSRC}/src/p2cc.perl.orig > ${WRKSRC}/src/p2cc.perl || exit 1;
-cat >>$3/src/Makefile <<END || exit 1;
+cat >>${WRKSRC}/src/Makefile <<END || exit 1;
HOMEDIR=/usr/local/lib/p2c
INCDIR=/usr/local/include/p2c
BINDIR=/usr/local/bin