diff options
Diffstat (limited to 'libraries/msgpack-c')
-rw-r--r-- | libraries/msgpack-c/msgpack-c.SlackBuild | 18 | ||||
-rw-r--r-- | libraries/msgpack-c/msgpack-c.info | 6 |
2 files changed, 13 insertions, 11 deletions
diff --git a/libraries/msgpack-c/msgpack-c.SlackBuild b/libraries/msgpack-c/msgpack-c.SlackBuild index 7fa63bd68d49a..c655e84b3de66 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 85fe3dd3fb35f..adbfa0b0cacb6 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="" |