diff options
Diffstat (limited to 'libraries/jsoncpp/jsoncpp.SlackBuild')
-rw-r--r-- | libraries/jsoncpp/jsoncpp.SlackBuild | 13 |
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 |