summaryrefslogtreecommitdiff
path: root/libraries/jsoncpp/jsoncpp.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2015-09-09 23:05:58 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-09 23:05:58 +0700
commit749150d8e138bc814dce8034c6d3f02535bcba7e (patch)
treea04635c405345c9e3f54ab3540b8f89e4cf924eb /libraries/jsoncpp/jsoncpp.SlackBuild
parent20d727333ea9e05e5e203b03c0af7c408eeda5b0 (diff)
downloadslackbuilds-749150d8e138bc814dce8034c6d3f02535bcba7e.tar.gz
libraries/jsoncpp: Updated for version 1.6.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/jsoncpp/jsoncpp.SlackBuild')
-rw-r--r--libraries/jsoncpp/jsoncpp.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/libraries/jsoncpp/jsoncpp.SlackBuild b/libraries/jsoncpp/jsoncpp.SlackBuild
index 21aa3146a9..11fe74a521 100644
--- a/libraries/jsoncpp/jsoncpp.SlackBuild
+++ b/libraries/jsoncpp/jsoncpp.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=jsoncpp
-VERSION=${VERSION:-1.6.2}
+VERSION=${VERSION:-1.6.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -73,13 +73,14 @@ mkdir -p build
cd build
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
- -DLIB_SUFFIX="$LIBDIRSUFFIX" \
+ -DLIB_SUFFIX:STRING="$LIBDIRSUFFIX" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DJSONCPP_WITH_CMAKE_PACKAGE:BOOL=ON \
- -DJSONCPP_LIB_BUILD_SHARED:BOOL=ON \
- -DJSONCPP_LIB_BUILD_STATIC:BOOL=OFF \
+ -DBUILD_STATIC_LIBS:BOOL=OFF \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
-DJSONCPP_WITH_TESTS:BOOL=OFF \
+ -DINCLUDE_INSTALL_DIR=/usr/include/$PRGNAM \
-DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1
@@ -89,10 +90,6 @@ cd -
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Move incude directory because it conflicts with json-c.
-# This is how Arch, Fedora, Ubuntu and Gentoo do it.
-[ -d $PKG/usr/include/json ] && mv $PKG/usr/include/json $PKG/usr/include/$PRGNAM
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS LICENSE NEWS.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild