libraries/msgpack-c-c: Updated for version 6.1.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Giancarlo Dessi 2024-08-30 11:45:11 +07:00 committed by Willy Sudiarto Raharjo
parent 205bc55553
commit 24d80ae862
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 17 additions and 19 deletions

View file

@ -1,21 +1,16 @@
MessagePack is an efficient binary serialisation format that lets you
exchange data among multiple languages like JSON.
exchange data among multiple languages like JSON.
Versions later than 3.3.0 have separate C and C++ implementations.
This slackbuild builds only the C++ implementation of MessagePack as
header-only library.
If you need also the C implementation you have to build and install
the package msgpack-c-c even. Both packages can coexist.
This slackbuild builds only the C implementation of MessagePack.
If you need also the C++ implementation you have to build and install
the package msgpack-c-cpp even. Both packages can coexist.
Note: msgpack-c-cpp conflicts with the old msgpack-c package, that
implements both C and C++ but is based on a old outdated release of
Note: msgpack-c-c conflicts with the old msgpack-c package, that
implements both C and C++ but is based on old outdated release of
msgpack-c. If you have msgpack-c version 3.3.0 in your system, please
remove it before installing these package.
This slackbuild is experimental because some slackbuilds that require
msgpack-c should be updated. If your installed packages work still with
the old msgpack-c for version 3.3.0, you should kept it.
At the moment, this package is tested and strictly required by mmtf-cpp,
other slackbuilds based on msgpack-c could not work with this
installation.

View file

@ -31,7 +31,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=msgpack-c-c
VERSION=${VERSION:-6.0.1}
VERSION=${VERSION:-6.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -63,6 +63,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@ -70,19 +73,19 @@ fi
set -e
# msgpack-c and older versions use the same include dirs so them
# cannot coexist with msgpack-c-cpp
# msgpack-c-c and older versions use the same include dirs so them
# cannot coexist with msgpack-c-c
if pkg-config --exists msgpack; then
echo "************************************************************************"
echo " WARNING: an old version of msgpack-c has been detected in your system!"
echo " This conflicts with msgpack-c-cpp. Please remove old installations of"
echo " This conflicts with msgpack-c-c. Please remove old installations of"
echo " msgpack-c before installing this package"
echo " This script will be stopped"
echo "************************************************************************"
exit 1
fi
if [ -d /usr/share/cmake-3.28 ]; then
if [ -d /usr/share/cmake-3.3* ]; then
# This prevents some cmake warnings in current
CMAKE_POLICY="-DCMAKE_POLICY_DEFAULT_CMP0145=OLD "
else

View file

@ -1,8 +1,8 @@
PRGNAM="msgpack-c-c"
VERSION="6.0.1"
VERSION="6.1.0"
HOMEPAGE="https://github.com/msgpack/msgpack-c"
DOWNLOAD="https://github.com/msgpack/msgpack-c/releases/download/c-6.0.1/msgpack-c-6.0.1.tar.gz"
MD5SUM="090df53a59b845767fcfc48221b30ee9"
DOWNLOAD="https://github.com/msgpack/msgpack-c/releases/download/c-6.1.0/msgpack-c-6.1.0.tar.gz"
MD5SUM="9054a97db4f88ad9b66c9eef079a5d5b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gtest"