blob: d1784843c70780ac198e17111549f0d2f81f0d5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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;
|