summaryrefslogtreecommitdiff
path: root/libraries/libkvkontakte/libkvkontakte.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-12-13 12:01:41 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-12-13 12:14:07 +0700
commit6bd4bd463f5d3b6c9cd3c0295878edcf35822d12 (patch)
tree0cd1dc49416b6c811c5ecfae04c17b20dc686f5e /libraries/libkvkontakte/libkvkontakte.SlackBuild
parent358ceb9fd9da1e17b6d2481f51a3f20fc1f32cf1 (diff)
downloadslackbuilds-6bd4bd463f5d3b6c9cd3c0295878edcf35822d12.tar.gz
libraries/libkvkontakte: Patched to work with newer cmake.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libkvkontakte/libkvkontakte.SlackBuild')
-rw-r--r--libraries/libkvkontakte/libkvkontakte.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/libkvkontakte/libkvkontakte.SlackBuild b/libraries/libkvkontakte/libkvkontakte.SlackBuild
index f020b86330..aaf60ad5b9 100644
--- a/libraries/libkvkontakte/libkvkontakte.SlackBuild
+++ b/libraries/libkvkontakte/libkvkontakte.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=libkvkontakte
VERSION=${VERSION:-4.12.0}
-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 {} \;
+# Patched to work with newer cmake in current
+sed -e "/^cmake_minimum_required/ a cmake_policy(SET CMP0022 OLD)\ncmake_policy(SET CMP0059 OLD)" -i CMakeLists.txt
+
mkdir -p build
cd build
cmake \
@@ -77,6 +80,7 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
+ -DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG