summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2015-06-10 01:39:33 +0000
committerwiedi <wiedi@pkgsrc.org>2015-06-10 01:39:33 +0000
commita2160e5fa0f9bad97a1b6b04a11395ac8bf85e17 (patch)
tree6e42807340cd1c49b1eefeb83ad1583c562002ec
parent14e8a38b823ca77b96048962e0e0b002cdd1b86a (diff)
downloadpkgsrc-a2160e5fa0f9bad97a1b6b04a11395ac8bf85e17.tar.gz
Import protobuf-c 1.1.1 as devel/protobuf-c
This is protobuf-c, a C implementation of the Google Protocol Buffers data serialization format. It includes libprotobuf-c, a pure C library that implements protobuf encoding and decoding, and protoc-c, a code generator that converts Protocol Buffer .proto files to C descriptor code, based on the original protoc.
-rw-r--r--devel/protobuf-c/DESCR5
-rw-r--r--devel/protobuf-c/Makefile24
-rw-r--r--devel/protobuf-c/PLIST6
-rw-r--r--devel/protobuf-c/buildlink3.mk14
-rw-r--r--devel/protobuf-c/distinfo6
-rw-r--r--devel/protobuf-c/patches/patch-Makefile.am20
6 files changed, 75 insertions, 0 deletions
diff --git a/devel/protobuf-c/DESCR b/devel/protobuf-c/DESCR
new file mode 100644
index 00000000000..a241185b612
--- /dev/null
+++ b/devel/protobuf-c/DESCR
@@ -0,0 +1,5 @@
+This is protobuf-c, a C implementation of the Google Protocol Buffers data
+serialization format. It includes libprotobuf-c, a pure C library that
+implements protobuf encoding and decoding, and protoc-c, a code generator that
+converts Protocol Buffer .proto files to C descriptor code, based on the
+original protoc.
diff --git a/devel/protobuf-c/Makefile b/devel/protobuf-c/Makefile
new file mode 100644
index 00000000000..1448d8ef5f8
--- /dev/null
+++ b/devel/protobuf-c/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+
+DISTNAME= protobuf-c-1.1.1
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=protobuf-c/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= wiedi@frubar.net
+HOMEPAGE= https://github.com/protobuf-c/protobuf-c
+COMMENT= Protocol Buffers implementation in C
+LICENSE= modified-bsd
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config aclocal autoconf automake gmake
+USE_LANGUAGES= c99 c++
+
+PKGCONFIG_OVERRIDE+= protobuf-c/libprotobuf-c.pc.in
+
+pre-configure:
+ cd ${WRKSRC} && ./autogen.sh
+
+.include "../../devel/protobuf/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/protobuf-c/PLIST b/devel/protobuf-c/PLIST
new file mode 100644
index 00000000000..26597fa1b4e
--- /dev/null
+++ b/devel/protobuf-c/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+bin/protoc-c
+include/google/protobuf-c/protobuf-c.h
+include/protobuf-c/protobuf-c.h
+lib/libprotobuf-c.la
+lib/pkgconfig/libprotobuf-c.pc
diff --git a/devel/protobuf-c/buildlink3.mk b/devel/protobuf-c/buildlink3.mk
new file mode 100644
index 00000000000..df0c3de3aaf
--- /dev/null
+++ b/devel/protobuf-c/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+
+BUILDLINK_TREE+= protobuf-c
+
+.if !defined(PROTOBUF_C_BUILDLINK3_MK)
+PROTOBUF_C_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.protobuf-c+= protobuf-c>=1.1.1
+BUILDLINK_PKGSRCDIR.protobuf-c?= ../../devel/protobuf-c
+
+.include "../../devel/protobuf/buildlink3.mk"
+.endif # PROTOBUF_C_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -protobuf-c
diff --git a/devel/protobuf-c/distinfo b/devel/protobuf-c/distinfo
new file mode 100644
index 00000000000..e2053778c12
--- /dev/null
+++ b/devel/protobuf-c/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+
+SHA1 (protobuf-c-1.1.1.tar.gz) = 9ab7586cd792b41c8f8d4a08d592f456d6e31482
+RMD160 (protobuf-c-1.1.1.tar.gz) = aed0d5a3e2241a8bd0d04fd01dbd1d2308e94b04
+Size (protobuf-c-1.1.1.tar.gz) = 116223 bytes
+SHA1 (patch-Makefile.am) = 7e037f255e8415cf3584adb0f652aabc71b4ecfe
diff --git a/devel/protobuf-c/patches/patch-Makefile.am b/devel/protobuf-c/patches/patch-Makefile.am
new file mode 100644
index 00000000000..920f24032c9
--- /dev/null
+++ b/devel/protobuf-c/patches/patch-Makefile.am
@@ -0,0 +1,20 @@
+$NetBSD: patch-Makefile.am,v 1.1 2015/06/10 01:39:33 wiedi Exp $
+
+rm -v is not portable
+
+--- Makefile.am.orig 2015-03-14 21:00:57.000000000 +0000
++++ Makefile.am
+@@ -185,11 +185,11 @@ EXTRA_DIST += \
+ CLEANFILES += $(BUILT_SOURCES)
+
+ dist-hook:
+- rm -vf `find $(top_distdir) -name '*.pb-c.[ch]' -o -name '*.pb.cc' -o -name '*.pb.h'`
++ rm -f `find $(top_distdir) -name '*.pb-c.[ch]' -o -name '*.pb.cc' -o -name '*.pb.h'`
+
+ install-data-hook:
+ $(MKDIR_P) $(DESTDIR)$(includedir)/google/protobuf-c
+- cd $(DESTDIR)$(includedir)/google/protobuf-c && rm -vf protobuf-c.h
++ cd $(DESTDIR)$(includedir)/google/protobuf-c && rm -f protobuf-c.h
+ cd $(DESTDIR)$(includedir)/google/protobuf-c && $(LN_S) ../../protobuf-c/protobuf-c.h protobuf-c.h
+
+ #