summaryrefslogtreecommitdiff
path: root/lang/p2c/scripts
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-10-20 01:51:56 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-10-20 01:51:56 +0000
commit3e790a10b5986696d132230c686648f335f94f60 (patch)
tree2eab9799856d9a1206b6e4b60b58f8dea1e35fef /lang/p2c/scripts
parentMinor tidy up (diff)
Changes from Jean-Marc Zucconi to obey PREFIX properly.
Submitted by: jmz
Notes
Notes: svn path=/head/; revision=247
Diffstat (limited to 'lang/p2c/scripts')
-rw-r--r--lang/p2c/scripts/configure20
1 files changed, 11 insertions, 9 deletions
diff --git a/lang/p2c/scripts/configure b/lang/p2c/scripts/configure
index eab3c4597275..d1784843c707 100644
--- a/lang/p2c/scripts/configure
+++ b/lang/p2c/scripts/configure
@@ -1,19 +1,21 @@
#!/bin/sh
-cat >>${WRKSRC}/Makefile <<END || exit 1;
+cat >>$WRKSRC/Makefile <<END || exit 1;
+
all:
cd src; make OPT=-O
END
-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;
+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 >>${WRKSRC}/src/Makefile <<END || exit 1;
-HOMEDIR=/usr/local/lib/p2c
-INCDIR=/usr/local/include/p2c
-BINDIR=/usr/local/bin
-LIBDIR=/usr/local/lib
-MANDIR=/usr/local/man/man1
+cat >>$WRKSRC/src/Makefile <<END || exit 1;
+HOMEDIR=$PREFIX/lib/p2c
+INCDIR=$PREFIX/include/p2c
+BINDIR=$PREFIX/bin
+LIBDIR=$PREFIX/lib
+MANDIR=$PREFIX/man/man1
+ABSHOMEDIR=$PREFIX/lib/p2c
END
exit 0;