From 4e3279f465242f70bb2032f58cd17adf0dd57533 Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Sun, 11 Nov 2018 16:23:29 -0800 Subject: libraries/jsoncpp: Updated for version 1.8.4 Signed-off-by: Larry Hajali --- libraries/jsoncpp/jsoncpp.SlackBuild | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) (limited to 'libraries/jsoncpp/jsoncpp.SlackBuild') 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 +# Copyright 2014-2018 Larry Hajali # 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 -- cgit v1.2.3