summaryrefslogtreecommitdiff
path: root/development/kicad/kicad.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/kicad/kicad.SlackBuild')
-rw-r--r--development/kicad/kicad.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/development/kicad/kicad.SlackBuild b/development/kicad/kicad.SlackBuild
index 4d633b63d1..e2461cf885 100644
--- a/development/kicad/kicad.SlackBuild
+++ b/development/kicad/kicad.SlackBuild
@@ -26,7 +26,7 @@
# Revision date: 2016/08/29
PRGNAM=kicad
-VERSION=${VERSION:-4.0.4}
+VERSION=${VERSION:-4.0.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -44,16 +44,16 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686 -std=c++11"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686 -std=c++11"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC -std=c++11"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
+ SLKCFLAGS="-O2 -std=c++11"
LIBDIRSUFFIX=""
fi
@@ -72,11 +72,14 @@ 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 {} \;
+# KiCad 4.0.5 cannot be compiled with boost 1.61 and higher since the latter requires C++11.
+# If you insist to use boost 1.61 and higher, you can apply this patch manually and compile
+# with a C++11 capable compiler and its appropriate compiler switches.
+patch -p1 --verbose < $CWD/boost-1.61.patch
+
mkdir -p build
cd build
cmake \
- -DKICAD_REPO_NAME=stable \
- -DKICAD_BUILD_VERSION=$VERSION \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \