pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel devel: add libmpack



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b33d90ce33a
branches:  trunk
changeset: 377404:0b33d90ce33a
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Apr 20 17:56:29 2022 +0000

description:
devel: add libmpack

libmpack is a small binary serialization/RPC library that implements both
the msgpack and msgpack-rpc specifications.

diffstat:

 devel/Makefile                                   |   3 ++-
 devel/libmpack/DESCR                             |   2 ++
 devel/libmpack/Makefile                          |  17 +++++++++++++++++
 devel/libmpack/PLIST                             |   4 ++++
 devel/libmpack/buildlink3.mk                     |  12 ++++++++++++
 devel/libmpack/distinfo                          |   6 ++++++
 devel/libmpack/patches/patch-test_deps_tap_tap.c |  21 +++++++++++++++++++++
 7 files changed, 64 insertions(+), 1 deletions(-)

diffs (103 lines):

diff -r c634e4170ae5 -r 0b33d90ce33a devel/Makefile
--- a/devel/Makefile    Wed Apr 20 17:41:28 2022 +0000
+++ b/devel/Makefile    Wed Apr 20 17:56:29 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3717 2022/04/20 17:41:08 nia Exp $
+# $NetBSD: Makefile,v 1.3718 2022/04/20 17:56:29 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -893,6 +893,7 @@
 SUBDIR+=       libmimedir
 SUBDIR+=       libmm
 SUBDIR+=       libmowgli
+SUBDIR+=       libmpack
 SUBDIR+=       libmtp
 SUBDIR+=       libnet
 SUBDIR+=       libnet10
diff -r c634e4170ae5 -r 0b33d90ce33a devel/libmpack/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmpack/DESCR      Wed Apr 20 17:56:29 2022 +0000
@@ -0,0 +1,2 @@
+libmpack is a small binary serialization/RPC library that implements both
+the msgpack and msgpack-rpc specifications.
diff -r c634e4170ae5 -r 0b33d90ce33a devel/libmpack/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmpack/Makefile   Wed Apr 20 17:56:29 2022 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2022/04/20 17:56:29 nia Exp $
+
+DISTNAME=      libmpack-1.0.5
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=libmpack/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/libmpack/libmpack
+COMMENT=       Simple implementation of msgpack in C
+LICENSE=       mit
+
+USE_LIBTOOL=   yes
+USE_TOOLS+=    gmake
+
+PKGCONFIG_OVERRIDE+=   mpack.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff -r c634e4170ae5 -r 0b33d90ce33a devel/libmpack/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmpack/PLIST      Wed Apr 20 17:56:29 2022 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2022/04/20 17:56:29 nia Exp $
+include/mpack.h
+lib/libmpack.la
+lib/pkgconfig/mpack.pc
diff -r c634e4170ae5 -r 0b33d90ce33a devel/libmpack/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmpack/buildlink3.mk      Wed Apr 20 17:56:29 2022 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/04/20 17:56:29 nia Exp $
+
+BUILDLINK_TREE+=       libmpack
+
+.if !defined(LIBMPACK_BUILDLINK3_MK)
+LIBMPACK_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libmpack+=       libmpack>=1.0.0
+BUILDLINK_PKGSRCDIR.libmpack?=         ../../devel/libmpack
+.endif # LIBMPACK_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libmpack
diff -r c634e4170ae5 -r 0b33d90ce33a devel/libmpack/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmpack/distinfo   Wed Apr 20 17:56:29 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/04/20 17:56:29 nia Exp $
+
+RMD160 (libmpack-1.0.5.tar.gz) = 9fe75c368af72d7b96fc6ea03b07ef8daeb41d87
+SHA512 (libmpack-1.0.5.tar.gz) = 6e30edafcacfb580b410bc6749ed7fe8f18b3be0cb98959339853e77bc3ec0cda6df08a0f1f22768cfc773458a2ea6bcef4f0421eea55cf56c58981d13711a04
+Size (libmpack-1.0.5.tar.gz) = 32966 bytes
+SHA1 (patch-test_deps_tap_tap.c) = fd935cbc243e54ef02d692fd9d514923cc61de15
diff -r c634e4170ae5 -r 0b33d90ce33a devel/libmpack/patches/patch-test_deps_tap_tap.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmpack/patches/patch-test_deps_tap_tap.c  Wed Apr 20 17:56:29 2022 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-test_deps_tap_tap.c,v 1.1 2022/04/20 17:56:29 nia Exp $
+
+Fix redefinition of MAP_ANONYMOUS
+https://github.com/libmpack/libmpack/issues/42
+
+--- test/deps/tap/tap.c.orig    2017-03-19 21:48:19.000000000 +0100
++++ test/deps/tap/tap.c 2020-06-16 19:33:41.583771997 +0200
+@@ -298,8 +298,12 @@
+ #include <sys/param.h>
+ #include <regex.h>
+ 
+-#if defined __APPLE__ || defined BSD
++#ifndef MAP_ANONYMOUS
++#ifdef MAP_ANON
+ #define MAP_ANONYMOUS MAP_ANON
++#else
++#error "System does not support mapping anonymous pages"
++#endif
+ #endif
+ 
+ /* Create a shared memory int to keep track of whether a piece of code executed



Home | Main Index | Thread Index | Old Index