aboutsummaryrefslogtreecommitdiff
path: root/development/Coin
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-11-16 07:36:31 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-16 13:58:33 -0600
commit1a0688bcdee7d07fb11768ddf8f526ddb01f2994 (patch)
tree8f8481c81224f3145ef7a68e990387aa47330f6a /development/Coin
parent6e9bf54759c7cef765984277b59cb9e0ca3430f6 (diff)
development/Coin: Added a fix for gcc.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/Coin')
-rw-r--r--development/Coin/Coin.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/development/Coin/Coin.SlackBuild b/development/Coin/Coin.SlackBuild
index b053855fb43b1..f8a58b43c3935 100644
--- a/development/Coin/Coin.SlackBuild
+++ b/development/Coin/Coin.SlackBuild
@@ -8,7 +8,7 @@
PRGNAM=Coin
VERSION=${VERSION:-3.1.3}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -64,6 +64,10 @@ find . \
# Thanks Debian
patch -p1 < $CWD/coin-include_and_js.patch
+# fix compilation - from AUR
+sed -i \
+ '/^#include "fonts\/freetype.h"$/i #include <cstdlib>\n#include <cmath>' \
+ src/fonts/freetype.cpp
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \