libraries/alure: Fix build when fluidsynth is present.

Thanks to USUARIONUEVO in LQ.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-10-28 05:16:08 +07:00
parent 237465ce84
commit d333a2d539
2 changed files with 17 additions and 1 deletions

View file

@ -24,7 +24,7 @@
PRGNAM=alure
VERSION=${VERSION:-1.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -69,6 +69,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Patch to fix build issue when fluidsynth is present
patch -p1 < $CWD/alure.patch
mkdir -p build
cd build
cmake \

View file

@ -0,0 +1,13 @@
diff -rupN a/src/codec_fluidsynth.cpp b/src/codec_fluidsynth.cpp
--- a/src/codec_fluidsynth.cpp 2011-07-29 08:37:48.000000000 +0000
+++ b/src/codec_fluidsynth.cpp 2014-01-03 10:42:13.280792235 +0000
@@ -32,7 +32,7 @@
#endif
#include <istream>
-
+#include <unistd.h>
#include <fluidsynth.h>