mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
graphics/lilypond: Fix building against fontforge-20141014.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
This commit is contained in:
parent
158949367c
commit
cd74c15930
2 changed files with 17 additions and 0 deletions
|
@ -67,6 +67,11 @@ cd $PRGNAM-$VERSION
|
|||
chown -R root:root .
|
||||
chmod -R u+w,go-w,a+rX-st .
|
||||
|
||||
# configure does some sed-fu on `fontforge --version` and is finding a git hash
|
||||
# instead of a version/date since at least fontforge-20141014.
|
||||
# This appears to detect the fontforge build date, which should be good enough.
|
||||
patch -p1 < $CWD/patches/detect-fontforge.diff
|
||||
|
||||
sed -i 's|GUILE_CFLAGS=.*|GUILE_CFLAGS="`pkg-config --cflags guile-1.8`"|' configure
|
||||
sed -i 's|GUILE_LDFLAGS=.*|GUILE_LDFLAGS="`pkg-config --libs guile-1.8`"|' configure
|
||||
|
||||
|
|
12
graphics/lilypond/patches/detect-fontforge.diff
Normal file
12
graphics/lilypond/patches/detect-fontforge.diff
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/configure b/configure
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -9810,7 +9810,7 @@
|
||||
|
||||
if test -z "$_ver"; then
|
||||
## If empty, try date [fontforge]
|
||||
- eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
|
||||
+ eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep 'libfontforge [0-9]\{6,8\}' \
|
||||
| head -n 1 \
|
||||
| sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
|
||||
fi
|
Loading…
Reference in a new issue