Wed Jun 10 01:39:33 2015 UTC ()
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.


(wiedi)
diff -r0 -r1.1 pkgsrc/devel/protobuf-c/DESCR
diff -r0 -r1.1 pkgsrc/devel/protobuf-c/Makefile
diff -r0 -r1.1 pkgsrc/devel/protobuf-c/PLIST
diff -r0 -r1.1 pkgsrc/devel/protobuf-c/buildlink3.mk
diff -r0 -r1.1 pkgsrc/devel/protobuf-c/distinfo
diff -r0 -r1.1 pkgsrc/devel/protobuf-c/patches/patch-Makefile.am

File Added: pkgsrc/devel/protobuf-c/DESCR
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.

File Added: pkgsrc/devel/protobuf-c/Makefile
# $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"

File Added: pkgsrc/devel/protobuf-c/PLIST
@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

File Added: pkgsrc/devel/protobuf-c/buildlink3.mk
# $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

File Added: pkgsrc/devel/protobuf-c/distinfo
$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

File Added: pkgsrc/devel/protobuf-c/patches/Attic/patch-Makefile.am
$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
 
 #