development/Coin: Added a fix for gcc.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2013-11-16 07:36:31 +01:00 committed by Robby Workman
parent 6e9bf54759
commit 1a0688bcde

View file

@ -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" \