From d03a0469285ab992385b5ae92366cc2cf7488fbe Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Sat, 25 Jun 2016 17:27:16 -0700 Subject: libraries/msgpack-c: Updated for version 2.0.0. Signed-off-by: Benjamin Trigona-Harany --- libraries/msgpack-c/msgpack-c.SlackBuild | 18 ++++++++++-------- libraries/msgpack-c/msgpack-c.info | 6 +++--- 2 files changed, 13 insertions(+), 11 deletions(-) (limited to 'libraries/msgpack-c') diff --git a/libraries/msgpack-c/msgpack-c.SlackBuild b/libraries/msgpack-c/msgpack-c.SlackBuild index 7fa63bd68d..c655e84b3d 100644 --- a/libraries/msgpack-c/msgpack-c.SlackBuild +++ b/libraries/msgpack-c/msgpack-c.SlackBuild @@ -24,7 +24,7 @@ SRCNAM=msgpack PRGNAM=$SRCNAM-c -VERSION=${VERSION:-1.4.2} +VERSION=${VERSION:-2.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -70,13 +70,15 @@ 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 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --enable-static=no \ - --build=$ARCH-slackware-linux +# this fixes install and msgpack.pc +sed -i "s/\/lib/\/lib${LIBDIRSUFFIX}/" CMakeLists.txt + +cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} . make make install DESTDIR=$PKG diff --git a/libraries/msgpack-c/msgpack-c.info b/libraries/msgpack-c/msgpack-c.info index 85fe3dd3fb..adbfa0b0ca 100644 --- a/libraries/msgpack-c/msgpack-c.info +++ b/libraries/msgpack-c/msgpack-c.info @@ -1,8 +1,8 @@ PRGNAM="msgpack-c" -VERSION="1.4.2" +VERSION="2.0.0" HOMEPAGE="http://msgpack-c.org/" -DOWNLOAD="https://github.com/msgpack/msgpack-c/releases/download/cpp-1.4.2/msgpack-1.4.2.tar.gz" -MD5SUM="445d6988e031b258386494742bb24c9b" +DOWNLOAD="https://github.com/msgpack/msgpack-c/releases/download/cpp-2.0.0/msgpack-2.0.0.tar.gz" +MD5SUM="55148cd856c72f954a6eb9cc889a7d2a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3-65-gdbad