mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-13 23:36:08 +00:00
3e790a10b5
Submitted by: jmz
22 lines
425 B
Bash
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;
|