Import protobuf 2.3.0, from Vincent Auclair with a DESCR reformatting by me.
Protocol buffers are a flexible, efficient, automated mechanism for serializing structured data - think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages. You can even update your data structure without breaking deployed programs that are compiled against the "old" format.
This commit is contained in:
parent
ef032ff697
commit
6d0b84b3bb
35
devel/protobuf/Makefile
Normal file
35
devel/protobuf/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/03/24 19:03:37 landry Exp $
|
||||
|
||||
COMMENT = c++ protocol buffers
|
||||
|
||||
DISTNAME = protobuf-2.3.0
|
||||
|
||||
SHARED_LIBS += protobuf 0.0 # .4.0
|
||||
SHARED_LIBS += protoc 0.0 # .4.0
|
||||
SHARED_LIBS += protobuf-lite 0.0 # .4.0
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE = http://code.google.com/p/protobuf/
|
||||
|
||||
MAINTAINER = Vincent Auclair <auclair.vincent@gmail.com>
|
||||
|
||||
# New BSD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += c m pthread stdc++ z
|
||||
|
||||
MASTER_SITES = http://protobuf.googlecode.com/files/
|
||||
|
||||
REGRESS_DEPENDS = ::devel/gtest
|
||||
|
||||
SEPARATE_BUILD = concurrent
|
||||
USE_GMAKE = Yes
|
||||
USE_LIBTOOL = Yes
|
||||
CONFIGURE_STYLE = gnu
|
||||
CONFIGURE_ARGS += ${CONFIGURE_SHARED} --with-zlib
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/protobuf/distinfo
Normal file
5
devel/protobuf/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (protobuf-2.3.0.tar.gz) = ZduiwEkjWVtvCmpE2BBvCg==
|
||||
RMD160 (protobuf-2.3.0.tar.gz) = rUtN93iTMWJNtmNajzrh+4fEZUg=
|
||||
SHA1 (protobuf-2.3.0.tar.gz) = 0OdHJVLlw1LtCvuwezDcs0PJaq8=
|
||||
SHA256 (protobuf-2.3.0.tar.gz) = ehbPDek5VkfZNvU2IEtAQWQ6oBMXSVCbm5v5el5H5cU=
|
||||
SIZE (protobuf-2.3.0.tar.gz) = 1849149
|
30
devel/protobuf/patches/patch-Makefile_in
Normal file
30
devel/protobuf/patches/patch-Makefile_in
Normal file
@ -0,0 +1,30 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2010/03/24 19:03:37 landry Exp $
|
||||
--- Makefile.in.orig Tue Jan 12 11:10:43 2010
|
||||
+++ Makefile.in Tue Jan 12 11:11:34 2010
|
||||
@@ -827,26 +827,6 @@ uninstall-am: uninstall-pkgconfigDATA
|
||||
uninstall uninstall-am uninstall-pkgconfigDATA
|
||||
|
||||
|
||||
-# Build gtest before we build protobuf tests. We don't add gtest to SUBDIRS
|
||||
-# because then "make check" would also build and run all of gtest's own tests,
|
||||
-# which takes a lot of time and is generally not useful to us. Also, we don't
|
||||
-# want "make install" to recurse into gtest since we don't want to overwrite
|
||||
-# the installed version of gtest if there is one.
|
||||
-check-local:
|
||||
- @echo "Making lib/libgtest.a lib/libgtest_main.a in gtest"
|
||||
- @cd gtest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.la lib/libgtest_main.la
|
||||
-
|
||||
-# We would like to clean gtest when "make clean" is invoked. But we have to
|
||||
-# be careful because clean-local is also invoked during "make distclean", but
|
||||
-# "make distclean" already recurses into gtest because it's listed among the
|
||||
-# DIST_SUBDIRS. distclean will delete gtest/Makefile, so if we then try to
|
||||
-# cd to the directory again and "make clean" it will fail. So, check that the
|
||||
-# Makefile exists before recursing.
|
||||
-clean-local:
|
||||
- @if test -e gtest/Makefile; then \
|
||||
- echo "Making clean in gtest"; \
|
||||
- cd gtest && $(MAKE) $(AM_MAKEFLAGS) clean; \
|
||||
- fi
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
24
devel/protobuf/patches/patch-configure
Normal file
24
devel/protobuf/patches/patch-configure
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2010/03/24 19:03:37 landry Exp $
|
||||
--- configure.orig Tue Jan 12 11:06:14 2010
|
||||
+++ configure Tue Jan 12 11:08:22 2010
|
||||
@@ -906,7 +906,6 @@ CXX
|
||||
CXXFLAGS
|
||||
CCC
|
||||
CXXCPP'
|
||||
-ac_subdirs_all='gtest'
|
||||
|
||||
# Initialize some variables set by options.
|
||||
ac_init_help=
|
||||
@@ -17294,12 +17293,6 @@ echo "$as_me: WARNING: could not find an STL hash_map"
|
||||
fi
|
||||
|
||||
|
||||
-# HACK: Make gtest's configure script pick up our copy of CFLAGS and CXXFLAGS,
|
||||
-# since the flags added by ACX_CHECK_SUNCC must be used when compiling gtest
|
||||
-# too.
|
||||
-export CFLAGS
|
||||
-export CXXFLAGS
|
||||
-subdirs="$subdirs gtest"
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile src/Makefile protobuf.pc protobuf-lite.pc"
|
77
devel/protobuf/patches/patch-src_Makefile_in
Normal file
77
devel/protobuf/patches/patch-src_Makefile_in
Normal file
@ -0,0 +1,77 @@
|
||||
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2010/03/24 19:03:37 landry Exp $
|
||||
--- src/Makefile.in.orig Tue Jan 12 11:12:09 2010
|
||||
+++ src/Makefile.in Tue Jan 12 11:19:21 2010
|
||||
@@ -139,8 +139,8 @@ protobuf_lazy_descriptor_test_OBJECTS = \
|
||||
$(am_protobuf_lazy_descriptor_test_OBJECTS) \
|
||||
$(nodist_protobuf_lazy_descriptor_test_OBJECTS)
|
||||
protobuf_lazy_descriptor_test_DEPENDENCIES = $(am__DEPENDENCIES_1) \
|
||||
- libprotobuf.la $(top_builddir)/gtest/lib/libgtest.la \
|
||||
- $(top_builddir)/gtest/lib/libgtest_main.la
|
||||
+ libprotobuf.la ${LOCALBASE}/lib/libgtest.la \
|
||||
+ ${LOCALBASE}/lib/libgtest_main.la
|
||||
protobuf_lazy_descriptor_test_LINK = $(LIBTOOL) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(protobuf_lazy_descriptor_test_CXXFLAGS) $(CXXFLAGS) \
|
||||
@@ -207,8 +207,8 @@ nodist_protobuf_test_OBJECTS = $(am__objects_8)
|
||||
protobuf_test_OBJECTS = $(am_protobuf_test_OBJECTS) \
|
||||
$(nodist_protobuf_test_OBJECTS)
|
||||
protobuf_test_DEPENDENCIES = $(am__DEPENDENCIES_1) libprotobuf.la \
|
||||
- libprotoc.la $(top_builddir)/gtest/lib/libgtest.la \
|
||||
- $(top_builddir)/gtest/lib/libgtest_main.la
|
||||
+ libprotoc.la ${LOCALBASE}/lib/libgtest.la \
|
||||
+ ${LOCALBASE}/lib/libgtest_main.la
|
||||
protobuf_test_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(protobuf_test_CXXFLAGS) \
|
||||
$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
@@ -220,7 +220,7 @@ am_test_plugin_OBJECTS = test_plugin-mock_code_generat
|
||||
test_plugin-file.$(OBJEXT) test_plugin-test_plugin.$(OBJEXT)
|
||||
test_plugin_OBJECTS = $(am_test_plugin_OBJECTS)
|
||||
test_plugin_DEPENDENCIES = $(am__DEPENDENCIES_1) libprotobuf.la \
|
||||
- libprotoc.la $(top_builddir)/gtest/lib/libgtest.la
|
||||
+ libprotoc.la ${LOCALBASE}/lib/libgtest.la
|
||||
am__zcgunzip_SOURCES_DIST = google/protobuf/testing/zcgunzip.cc
|
||||
@HAVE_ZLIB_TRUE@am_zcgunzip_OBJECTS = zcgunzip.$(OBJEXT)
|
||||
zcgunzip_OBJECTS = $(am_zcgunzip_OBJECTS)
|
||||
@@ -670,11 +670,10 @@ COMMON_TEST_SOURCES = \
|
||||
google/protobuf/testing/file.h
|
||||
|
||||
protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
|
||||
- $(top_builddir)/gtest/lib/libgtest.la \
|
||||
- $(top_builddir)/gtest/lib/libgtest_main.la
|
||||
+ ${LOCALBASE}/lib/libgtest.la \
|
||||
+ ${LOCALBASE}/lib/libgtest_main.la
|
||||
|
||||
-protobuf_test_CPPFLAGS = -I$(top_srcdir)/gtest/include \
|
||||
- -I$(top_builddir)/gtest/include
|
||||
+protobuf_test_CPPFLAGS = -I${LOCALBASE}/include
|
||||
|
||||
# Disable optimization for tests unless the user explicitly asked for it,
|
||||
# since test_util.cc takes forever to compile with optimization (with GCC).
|
||||
@@ -716,11 +715,10 @@ nodist_protobuf_test_SOURCES = $(protoc_outputs)
|
||||
|
||||
# Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined.
|
||||
protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \
|
||||
- $(top_builddir)/gtest/lib/libgtest.la \
|
||||
- $(top_builddir)/gtest/lib/libgtest_main.la
|
||||
+ ${LOCALBASE}/lib/libgtest.la \
|
||||
+ ${LOCALBASE}/lib/libgtest_main.la
|
||||
|
||||
-protobuf_lazy_descriptor_test_CPPFLAGS = -I$(top_srcdir)/gtest/include \
|
||||
- -I$(top_builddir)/gtest/include \
|
||||
+protobuf_lazy_descriptor_test_CPPFLAGS = -I${LOCALBASE}/include \
|
||||
-DPROTOBUF_TEST_NO_DESCRIPTORS
|
||||
|
||||
protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
|
||||
@@ -742,10 +740,9 @@ nodist_protobuf_lite_test_SOURCES = $(protoc_lite_outp
|
||||
|
||||
# Test plugin binary.
|
||||
test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
|
||||
- $(top_builddir)/gtest/lib/libgtest.la
|
||||
+ ${LOCALBASE}/lib/libgtest.la
|
||||
|
||||
-test_plugin_CPPFLAGS = -I$(top_srcdir)/gtest/include \
|
||||
- -I$(top_builddir)/gtest/include
|
||||
+test_plugin_CPPFLAGS = -I${LOCALBASE}/include
|
||||
|
||||
test_plugin_SOURCES = \
|
||||
google/protobuf/compiler/mock_code_generator.cc \
|
7
devel/protobuf/pkg/DESCR
Normal file
7
devel/protobuf/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
Protocol buffers are a flexible, efficient, automated mechanism for
|
||||
serializing structured data - think XML, but smaller, faster, and
|
||||
simpler. You define how you want your data to be structured once, then
|
||||
you can use special generated source code to easily write and read your
|
||||
structured data to and from a variety of data streams and using a
|
||||
variety of languages. You can even update your data structure without
|
||||
breaking deployed programs that are compiled against the "old" format.
|
4
devel/protobuf/pkg/PFRAG.shared
Normal file
4
devel/protobuf/pkg/PFRAG.shared
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/03/24 19:03:37 landry Exp $
|
||||
@lib lib/libprotobuf-lite.so.${LIBprotobuf-lite_VERSION}
|
||||
@lib lib/libprotobuf.so.${LIBprotobuf_VERSION}
|
||||
@lib lib/libprotoc.so.${LIBprotoc_VERSION}
|
57
devel/protobuf/pkg/PLIST
Normal file
57
devel/protobuf/pkg/PLIST
Normal file
@ -0,0 +1,57 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/03/24 19:03:37 landry Exp $
|
||||
%%SHARED%%
|
||||
@bin bin/protoc
|
||||
include/google/
|
||||
include/google/protobuf/
|
||||
include/google/protobuf/compiler/
|
||||
include/google/protobuf/compiler/code_generator.h
|
||||
include/google/protobuf/compiler/command_line_interface.h
|
||||
include/google/protobuf/compiler/cpp/
|
||||
include/google/protobuf/compiler/cpp/cpp_generator.h
|
||||
include/google/protobuf/compiler/importer.h
|
||||
include/google/protobuf/compiler/java/
|
||||
include/google/protobuf/compiler/java/java_generator.h
|
||||
include/google/protobuf/compiler/parser.h
|
||||
include/google/protobuf/compiler/plugin.h
|
||||
include/google/protobuf/compiler/plugin.pb.h
|
||||
include/google/protobuf/compiler/plugin.proto
|
||||
include/google/protobuf/compiler/python/
|
||||
include/google/protobuf/compiler/python/python_generator.h
|
||||
include/google/protobuf/descriptor.h
|
||||
include/google/protobuf/descriptor.pb.h
|
||||
include/google/protobuf/descriptor.proto
|
||||
include/google/protobuf/descriptor_database.h
|
||||
include/google/protobuf/dynamic_message.h
|
||||
include/google/protobuf/extension_set.h
|
||||
include/google/protobuf/generated_message_reflection.h
|
||||
include/google/protobuf/generated_message_util.h
|
||||
include/google/protobuf/io/
|
||||
include/google/protobuf/io/coded_stream.h
|
||||
include/google/protobuf/io/gzip_stream.h
|
||||
include/google/protobuf/io/printer.h
|
||||
include/google/protobuf/io/tokenizer.h
|
||||
include/google/protobuf/io/zero_copy_stream.h
|
||||
include/google/protobuf/io/zero_copy_stream_impl.h
|
||||
include/google/protobuf/io/zero_copy_stream_impl_lite.h
|
||||
include/google/protobuf/message.h
|
||||
include/google/protobuf/message_lite.h
|
||||
include/google/protobuf/reflection_ops.h
|
||||
include/google/protobuf/repeated_field.h
|
||||
include/google/protobuf/service.h
|
||||
include/google/protobuf/stubs/
|
||||
include/google/protobuf/stubs/common.h
|
||||
include/google/protobuf/stubs/once.h
|
||||
include/google/protobuf/text_format.h
|
||||
include/google/protobuf/unknown_field_set.h
|
||||
include/google/protobuf/wire_format.h
|
||||
include/google/protobuf/wire_format_lite.h
|
||||
include/google/protobuf/wire_format_lite_inl.h
|
||||
lib/libprotobuf-lite.a
|
||||
lib/libprotobuf-lite.la
|
||||
lib/libprotobuf.a
|
||||
lib/libprotobuf.la
|
||||
lib/libprotoc.a
|
||||
lib/libprotoc.la
|
||||
lib/pkgconfig/
|
||||
lib/pkgconfig/protobuf-lite.pc
|
||||
lib/pkgconfig/protobuf.pc
|
Loading…
Reference in New Issue
Block a user