summaryrefslogtreecommitdiff
path: root/print/lilypond-devel/scripts/pre-configure
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-12-31 17:42:48 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-12-31 17:42:48 +0000
commitf069c11957f6769f877c5b06c5ca331ff939d317 (patch)
treed31549fcb82337f961ffaac0a0e776d35c500350 /print/lilypond-devel/scripts/pre-configure
parentUpdate to DAT 4312 (diff)
- Update to 2.1.4
- Unbreak on 5.x - Update MASTER_SITES PR: ports/60751 Submitted by: Patrick Atamaniuk <atamaniuk-ports@frobs.net> (maintainer)
Diffstat (limited to '')
-rw-r--r--print/lilypond-devel/scripts/pre-configure6
1 files changed, 5 insertions, 1 deletions
diff --git a/print/lilypond-devel/scripts/pre-configure b/print/lilypond-devel/scripts/pre-configure
index 5cc15b3de978..1c152bae56db 100644
--- a/print/lilypond-devel/scripts/pre-configure
+++ b/print/lilypond-devel/scripts/pre-configure
@@ -3,7 +3,11 @@ outdir=out
cd ${WRKSRC} || exit 2
echo "Patching for FlexLexer.h <->gcc3 issues"
-file=/usr/include/g++/FlexLexer.h
+file=""
+candidates=`find /usr/include/ -name FlexLexer.h`
+#take first found file.
+for d in $candidates; do if [ -f $d ]; then file=$d; break; fi; done
+if [ -z "${file}" ]; then echo "Cannot find FlexLexer.h"; exit 2; fi
echo -n "Copying and fixing $file... "
mkdir -p lily/$outdir