summaryrefslogtreecommitdiff
path: root/libraries/libofa/libofa.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libofa/libofa.SlackBuild')
-rw-r--r--libraries/libofa/libofa.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/libraries/libofa/libofa.SlackBuild b/libraries/libofa/libofa.SlackBuild
index 5e67f4fc2c..8a28d04d4a 100644
--- a/libraries/libofa/libofa.SlackBuild
+++ b/libraries/libofa/libofa.SlackBuild
@@ -4,7 +4,7 @@
PRGNAM=libofa
VERSION=${VERSION:-0.9.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -53,8 +53,12 @@ find . \
# Thanks, Gentoo guys :-)
# http://mirrors.usc.edu/pub/linux/distributions/gentoo/media-libs/libofa/files/
-patch -p0 < $CWD/libofa-0.9.3-gcc-4.patch
-patch -p1 < $CWD/libofa-0.9.3-gcc-4.3.patch
+patch -p0 < $CWD/patches/libofa-0.9.3-gcc-4.patch
+patch -p1 < $CWD/patches/libofa-0.9.3-gcc-4.3.patch
+# Fix for gcc-4.7
+patch -p1 < $CWD/patches/libofa-0.9.3-gcc-4.7.patch
+# remove a deprecated curl header
+sed -i "s|^#include <curl/types\.h>||" examples/protocol.cpp
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \