diff options
author | eik <eik@FreeBSD.org> | 2003-11-21 04:15:42 +0800 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2003-11-21 04:15:42 +0800 |
commit | d21aa4557903225e189691c1ee5785dddbdc44f4 (patch) | |
tree | e5d371ee15e2baca7dcb67cd8b72c53211216491 /print/lilypond-devel/scripts | |
parent | 54e0efd4fc82b21c8928bf77e28c23149a50dc73 (diff) | |
download | freebsd-ports-gnome-d21aa4557903225e189691c1ee5785dddbdc44f4.tar.gz freebsd-ports-gnome-d21aa4557903225e189691c1ee5785dddbdc44f4.tar.zst freebsd-ports-gnome-d21aa4557903225e189691c1ee5785dddbdc44f4.zip |
development version of print/lilypond:
"usually quite stable and very usable, providing wanted new features."
PR: 58260
Submitted by: Patrick Atamaniuk <atamaniuk-ports@frobs.net>
Approved by: marcus (mentor)
Diffstat (limited to 'print/lilypond-devel/scripts')
-rw-r--r-- | print/lilypond-devel/scripts/post-configure | 14 | ||||
-rw-r--r-- | print/lilypond-devel/scripts/pre-configure | 16 |
2 files changed, 30 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" diff --git a/print/lilypond-devel/scripts/pre-configure b/print/lilypond-devel/scripts/pre-configure new file mode 100644 index 000000000000..5cc15b3de978 --- /dev/null +++ b/print/lilypond-devel/scripts/pre-configure @@ -0,0 +1,16 @@ +#!/bin/sh +outdir=out +cd ${WRKSRC} || exit 2 +echo "Patching for FlexLexer.h <->gcc3 issues" + +file=/usr/include/g++/FlexLexer.h + +echo -n "Copying and fixing $file... " +mkdir -p lily/$outdir +rm -f lily/$outdir/FlexLexer.h +sed \ + -e 's/istream/std::istream/' \ + -e 's/[^i]ostream/std::ostream/' \ + -e 's/iostream.h/iostream/' \ + $file > lily/$outdir/FlexLexer.h +echo "done" |