4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.illumos.org/license/CDDL.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright 2017 Gary Mills
22 # Copyright (c) 2015, Predrag Zecevic. All rights reserved.
23 # Copyright (c) 2015, Aurelien Larcher. All rights reserved.
24 # Copyright 2023 Niklas Poslovski
28 USE_PARALLEL_BUILD
=yes
29 include ..
/..
/..
/make-rules
/shared-macros.mk
31 COMPONENT_NAME
= protobuf
32 COMPONENT_VERSION
= 24.4
34 COMPONENT_SUMMARY
= Protocol Buffers
- Google data interchange format
35 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
36 COMPONENT_PROJECT_URL
= https
://github.com
/google
/protobuf
/
37 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
38 COMPONENT_ARCHIVE_HASH
= sha256
:616bb3536ac1fff3fb1a141450fa28b875e985712170ea7f1bfe5e5fc41e2cd8
39 COMPONENT_ARCHIVE_URL
= https
://github.com
/google
/protobuf
/archive
/v
$(COMPONENT_VERSION
).
tar.gz
40 COMPONENT_FMRI
= library
/c
++/protobuf
41 COMPONENT_CLASSIFICATION
=System
/Libraries
42 COMPONENT_LICENSE
= BSD
43 COMPONENT_LICENSE_FILE
= LICENSE
45 # Tests require Googletest which we don't have yet.
46 TEST_TARGET
= $(NO_TESTS
)
47 include $(WS_MAKE_RULES
)/common.mk
49 CMAKE_OPTIONS
+= -Dprotobuf_BUILD_TESTS
=OFF
50 CMAKE_OPTIONS
+= -Dprotobuf_BUILD_SHARED_LIBS
=ON
51 CMAKE_OPTIONS
+= -Dprotobuf_ABSL_PROVIDER
=package
53 #COMPONENT_POST_INSTALL_ACTION = \
54 # /usr/bin/elfedit -e 'dyn:delete RUNPATH' $(PROTO_DIR)/usr/bin/protoc; \
55 # /usr/bin/elfedit -e 'dyn:delete RPATH' $(PROTO_DIR)/usr/bin/protoc;
57 # Auto-generated dependencies
58 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
59 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
60 REQUIRED_PACKAGES
+= library
/c
++/abseil-cpp
61 REQUIRED_PACKAGES
+= library
/zlib
62 REQUIRED_PACKAGES
+= system
/library
63 REQUIRED_PACKAGES
+= system
/library
/math