diff --git a/components/library/flatbuffers/Makefile b/components/library/flatbuffers/Makefile new file mode 100644 index 00000000000..bab86ca441a --- /dev/null +++ b/components/library/flatbuffers/Makefile @@ -0,0 +1,42 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2024 Friedrich Kink +# + +BUILD_STYLE= cmake +include ../../../make-rules/shared-macros.mk + +COMPONENT_NAME= flatbuffers +COMPONENT_VERSION= 24.3.25 +COMPONENT_SUMMARY= FlatBuffers: Memory Efficient Serialization Library +COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) +COMPONENT_ARCHIVE= v$(COMPONENT_VERSION).tar.gz +COMPONENT_ARCHIVE_HASH= sha256:4157c5cacdb59737c5d627e47ac26b140e9ee28b1102f812b36068aab728c1ed +COMPONENT_ARCHIVE_URL= https://github.com/google/$(COMPONENT_NAME)/archive/refs/tags/$(COMPONENT_ARCHIVE) +COMPONENT_PROJECT_URL= https://flatbuffers.dev/ +COMPONENT_FMRI= library/$(COMPONENT_NAME) +COMPONENT_CLASSIFICATION=System/Libraries +COMPONENT_LICENSE= Apache-2.0 +COMPONENT_LICENSE_FILE= LICENSE + +TEST_TARGET= $(NO_TESTS) +include $(WS_MAKE_RULES)/common.mk + +CMAKE_OPTIONS += -DFLATBUFFERS_BUILD_FLATHASH=ON +CMAKE_OPTIONS += -DFLATBUFFERS_BUILD_SHAREDLIB=ON + +# Auto-generated dependencies +REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG) +REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG) +REQUIRED_PACKAGES += system/library +REQUIRED_PACKAGES += system/library/math diff --git a/components/library/flatbuffers/flatbuffers.p5m b/components/library/flatbuffers/flatbuffers.p5m new file mode 100644 index 00000000000..c6fee584d7f --- /dev/null +++ b/components/library/flatbuffers/flatbuffers.p5m @@ -0,0 +1,72 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2024 Friedrich Kink +# + +set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.human-version value=$(HUMAN_VERSION) +set name=pkg.summary value="$(COMPONENT_SUMMARY)" +set name=info.classification value="$(COMPONENT_CLASSIFICATION)" +set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) +set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' + +file path=usr/bin/flatc +file path=usr/include/flatbuffers/allocator.h +file path=usr/include/flatbuffers/array.h +file path=usr/include/flatbuffers/base.h +file path=usr/include/flatbuffers/buffer.h +file path=usr/include/flatbuffers/buffer_ref.h +file path=usr/include/flatbuffers/code_generator.h +file path=usr/include/flatbuffers/code_generators.h +file path=usr/include/flatbuffers/default_allocator.h +file path=usr/include/flatbuffers/detached_buffer.h +file path=usr/include/flatbuffers/file_manager.h +file path=usr/include/flatbuffers/flatbuffer_builder.h +file path=usr/include/flatbuffers/flatbuffers.h +file path=usr/include/flatbuffers/flatc.h +file path=usr/include/flatbuffers/flex_flat_util.h +file path=usr/include/flatbuffers/flexbuffers.h +file path=usr/include/flatbuffers/grpc.h +file path=usr/include/flatbuffers/hash.h +file path=usr/include/flatbuffers/idl.h +file path=usr/include/flatbuffers/minireflect.h +file path=usr/include/flatbuffers/pch/flatc_pch.h +file path=usr/include/flatbuffers/pch/pch.h +file path=usr/include/flatbuffers/reflection.h +file path=usr/include/flatbuffers/reflection_generated.h +file path=usr/include/flatbuffers/registry.h +file path=usr/include/flatbuffers/stl_emulation.h +file path=usr/include/flatbuffers/string.h +file path=usr/include/flatbuffers/struct.h +file path=usr/include/flatbuffers/table.h +file path=usr/include/flatbuffers/util.h +file path=usr/include/flatbuffers/vector.h +file path=usr/include/flatbuffers/vector_downward.h +file path=usr/include/flatbuffers/verifier.h +file path=usr/lib/$(MACH64)/cmake/flatbuffers/BuildFlatBuffers.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatBuffersSharedTargets-noconfig.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatBuffersSharedTargets.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatBuffersTargets-noconfig.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatBuffersTargets.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatcTargets-noconfig.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatcTargets.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/flatbuffers-config-version.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/flatbuffers-config.cmake +file path=usr/lib/$(MACH64)/libflatbuffers.a +link path=usr/lib/$(MACH64)/libflatbuffers.so \ + target=libflatbuffers.so.$(HUMAN_VERSION) +file path=usr/lib/$(MACH64)/libflatbuffers.so.$(HUMAN_VERSION) +file path=usr/lib/$(MACH64)/pkgconfig/flatbuffers.pc diff --git a/components/library/flatbuffers/manifests/sample-manifest.p5m b/components/library/flatbuffers/manifests/sample-manifest.p5m new file mode 100644 index 00000000000..3569fbfb2e3 --- /dev/null +++ b/components/library/flatbuffers/manifests/sample-manifest.p5m @@ -0,0 +1,72 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2024 +# + +set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.human-version value=$(HUMAN_VERSION) +set name=pkg.summary value="$(COMPONENT_SUMMARY)" +set name=info.classification value="$(COMPONENT_CLASSIFICATION)" +set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) +set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' + +file path=usr/bin/flatc +file path=usr/include/flatbuffers/allocator.h +file path=usr/include/flatbuffers/array.h +file path=usr/include/flatbuffers/base.h +file path=usr/include/flatbuffers/buffer.h +file path=usr/include/flatbuffers/buffer_ref.h +file path=usr/include/flatbuffers/code_generator.h +file path=usr/include/flatbuffers/code_generators.h +file path=usr/include/flatbuffers/default_allocator.h +file path=usr/include/flatbuffers/detached_buffer.h +file path=usr/include/flatbuffers/file_manager.h +file path=usr/include/flatbuffers/flatbuffer_builder.h +file path=usr/include/flatbuffers/flatbuffers.h +file path=usr/include/flatbuffers/flatc.h +file path=usr/include/flatbuffers/flex_flat_util.h +file path=usr/include/flatbuffers/flexbuffers.h +file path=usr/include/flatbuffers/grpc.h +file path=usr/include/flatbuffers/hash.h +file path=usr/include/flatbuffers/idl.h +file path=usr/include/flatbuffers/minireflect.h +file path=usr/include/flatbuffers/pch/flatc_pch.h +file path=usr/include/flatbuffers/pch/pch.h +file path=usr/include/flatbuffers/reflection.h +file path=usr/include/flatbuffers/reflection_generated.h +file path=usr/include/flatbuffers/registry.h +file path=usr/include/flatbuffers/stl_emulation.h +file path=usr/include/flatbuffers/string.h +file path=usr/include/flatbuffers/struct.h +file path=usr/include/flatbuffers/table.h +file path=usr/include/flatbuffers/util.h +file path=usr/include/flatbuffers/vector.h +file path=usr/include/flatbuffers/vector_downward.h +file path=usr/include/flatbuffers/verifier.h +file path=usr/lib/$(MACH64)/cmake/flatbuffers/BuildFlatBuffers.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatBuffersSharedTargets-noconfig.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatBuffersSharedTargets.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatBuffersTargets-noconfig.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatBuffersTargets.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatcTargets-noconfig.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/FlatcTargets.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/flatbuffers-config-version.cmake +file path=usr/lib/$(MACH64)/cmake/flatbuffers/flatbuffers-config.cmake +file path=usr/lib/$(MACH64)/libflatbuffers.a +link path=usr/lib/$(MACH64)/libflatbuffers.so \ + target=libflatbuffers.so.$(HUMAN_VERSION) +file path=usr/lib/$(MACH64)/libflatbuffers.so.$(HUMAN_VERSION) +file path=usr/lib/$(MACH64)/pkgconfig/flatbuffers.pc diff --git a/components/library/flatbuffers/pkg5 b/components/library/flatbuffers/pkg5 new file mode 100644 index 00000000000..c0771014316 --- /dev/null +++ b/components/library/flatbuffers/pkg5 @@ -0,0 +1,12 @@ +{ + "dependencies": [ + "system/library", + "system/library/g++-13-runtime", + "system/library/gcc-13-runtime", + "system/library/math" + ], + "fmris": [ + "library/flatbuffers" + ], + "name": "flatbuffers" +}