1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/lang/p2c/scripts/configure
1994-10-20 01:51:56 +00:00

22 lines
425 B
Bash

#!/bin/sh
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;
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;