diff options
Diffstat (limited to 'print/lilypond-devel/scripts/post-configure')
-rw-r--r-- | print/lilypond-devel/scripts/post-configure | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/print/lilypond-devel/scripts/post-configure b/print/lilypond-devel/scripts/post-configure new file mode 100644 index 000000000000..713c4d692b10 --- /dev/null +++ b/print/lilypond-devel/scripts/post-configure @@ -0,0 +1,14 @@ +#!/bin/sh +outdir=out +cd ${WRKSRC} || exit 2 + file=lily/$outdir/lexer.cc + echo -n "Generating and fixing $file... " + rm -f $file + gmake conf=$CONF -C lily $outdir/lexer.cc || true + + mv $file $file.orig + sed -e 's/istream\*/std::istream*/g' \ + -e 's/ostream\*/std::ostream*/g' \ + -e 's/class istream;/#include \<iostream\>/g' \ + $file.orig > $file + echo "done" |