mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
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:
parent
237465ce84
commit
d333a2d539
2 changed files with 17 additions and 1 deletions
|
@ -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 \
|
||||
|
|
13
libraries/alure/alure.patch
Normal file
13
libraries/alure/alure.patch
Normal 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>
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue