summaryrefslogtreecommitdiff
path: root/libraries/msgpack-c
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2016-06-25 17:27:16 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-06-27 07:54:38 +0700
commitd03a0469285ab992385b5ae92366cc2cf7488fbe (patch)
treea215ef54a029f288512d0420462987abd33dfd0b /libraries/msgpack-c
parent112a3b31cbf694a575a9a435dbaa871901cac62a (diff)
downloadslackbuilds-d03a0469285ab992385b5ae92366cc2cf7488fbe.tar.gz
libraries/msgpack-c: Updated for version 2.0.0.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'libraries/msgpack-c')
-rw-r--r--libraries/msgpack-c/msgpack-c.SlackBuild18
-rw-r--r--libraries/msgpack-c/msgpack-c.info6
2 files changed, 13 insertions, 11 deletions
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=""