aboutsummaryrefslogtreecommitdiff
path: root/libraries/jsoncpp/jsoncpp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/jsoncpp/jsoncpp.SlackBuild')
-rw-r--r--libraries/jsoncpp/jsoncpp.SlackBuild10
1 files changed, 3 insertions, 7 deletions
diff --git a/libraries/jsoncpp/jsoncpp.SlackBuild b/libraries/jsoncpp/jsoncpp.SlackBuild
index ab301a576c462..8f9b3fe27a973 100644
--- a/libraries/jsoncpp/jsoncpp.SlackBuild
+++ b/libraries/jsoncpp/jsoncpp.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for jsoncpp
-# Copyright 2014 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2014-2015 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=jsoncpp
-VERSION=${VERSION:-1.0.0}
+VERSION=${VERSION:-1.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,15 +69,11 @@ 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 {} \;
-# Fix lib path.
-sed -i \
- -e "s|lib$|lib${LIBDIRSUFFIX}|" -e "s|/lib/|/lib${LIBDIRSUFFIX}/|" \
- -e "s|lib/cmake|lib${LIBDIRSUFFIX}/cmake|" CMakeLists.txt pkg-config/$PRGNAM.pc.in
-
mkdir -p build
cd build
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
+ -DLIB_SUFFIX="$LIBDIRSUFFIX" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DJSONCPP_WITH_CMAKE_PACKAGE:BOOL=ON \