summaryrefslogtreecommitdiff
path: root/libraries/jsoncpp/jsoncpp.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2018-11-11 16:23:29 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-17 18:42:54 +0700
commit4e3279f465242f70bb2032f58cd17adf0dd57533 (patch)
tree3c3b3204ef7d792cd4875e1da2b3599adb6b17eb /libraries/jsoncpp/jsoncpp.SlackBuild
parentef8cbe883aa731c4e620e7153a540117806f77c7 (diff)
downloadslackbuilds-4e3279f465242f70bb2032f58cd17adf0dd57533.tar.gz
libraries/jsoncpp: Updated for version 1.8.4
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'libraries/jsoncpp/jsoncpp.SlackBuild')
-rw-r--r--libraries/jsoncpp/jsoncpp.SlackBuild34
1 files changed, 15 insertions, 19 deletions
diff --git a/libraries/jsoncpp/jsoncpp.SlackBuild b/libraries/jsoncpp/jsoncpp.SlackBuild
index 36b8b366ff..9464b12b76 100644
--- a/libraries/jsoncpp/jsoncpp.SlackBuild
+++ b/libraries/jsoncpp/jsoncpp.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for jsoncpp
-# Copyright 2014-2017 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2014-2018 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.8.1}
+VERSION=${VERSION:-1.8.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,29 +71,25 @@ find -L . \
mkdir -p build
cd build
- cmake -G "Unix Makefiles" \
- -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DJSONCPP_WITH_CMAKE_PACKAGE:BOOL=ON \
- -DBUILD_STATIC_LIBS:BOOL=OFF \
- -DBUILD_SHARED_LIBS:BOOL=ON \
- -DJSONCPP_WITH_TESTS:BOOL=OFF \
- -DCMAKE_INSTALL_INCLUDEDIR="/usr/include/$PRGNAM" \
- -DCMAKE_BUILD_TYPE=Release ..
+ CXXFLAGS="$SLKCFLAGS -std=c++11" \
+ meson setup \
+ --prefix=/usr \
+ --libdir=lib${LIBDIRSUFFIX} \
+ --bindir=/usr/bin \
+ --includedir=/usr/include/$PRGNAM \
+ --buildtype=release \
+ --default-library=shared \
+ ..
- make VERBOSE=1
- make install DESTDIR=$PKG
-cd -
+ ninja
+ DESTDIR=$PKG ninja install
+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
-# Cosmetic fix.
-sed -i '/^includedir/s|\$.*//|/|' $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/$PRGNAM.pc
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS LICENSE NEWS.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install