aboutsummaryrefslogtreecommitdiffstats
path: root/lang/p2c/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'lang/p2c/scripts')
-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