summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile4
-rw-r--r--lang/p2c/scripts/configure10
2 files changed, 6 insertions, 8 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 71ebce9933fc..c05a52b11ba0 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -1,5 +1,5 @@
-# $Id$
+# $Id: Makefile,v 1.3 1994/08/23 10:20:23 jkh Exp $
#
-SUBDIR= tcl tclX
+SUBDIR= p2c tcl tclX
.include <bsd.port.subdir.mk>
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