summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-28 05:16:08 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-28 05:16:08 +0700
commitd333a2d539a6f871f914d012985f72f3fa452915 (patch)
treeb3320b4bf64e20bb08724aa40c55e892b95ac8ec
parent237465ce8416c787e3df5e4f3638d0cbfd97bbab (diff)
downloadslackbuilds-d333a2d539a6f871f914d012985f72f3fa452915.tar.gz
libraries/alure: Fix build when fluidsynth is present.
Thanks to USUARIONUEVO in LQ. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/alure/alure.SlackBuild5
-rw-r--r--libraries/alure/alure.patch13
2 files changed, 17 insertions, 1 deletions
diff --git a/libraries/alure/alure.SlackBuild b/libraries/alure/alure.SlackBuild
index c0395fab7c..e80a7436f9 100644
--- a/libraries/alure/alure.SlackBuild
+++ b/libraries/alure/alure.SlackBuild
@@ -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 \
diff --git a/libraries/alure/alure.patch b/libraries/alure/alure.patch
new file mode 100644
index 0000000000..43f5fff7ef
--- /dev/null
+++ b/libraries/alure/alure.patch
@@ -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>
+
+
+