PSARC/2016/619 snappy compression library
authorQiang Strony Zhang <strony.zhang@oracle.com>
Mon, 09 Jan 2017 17:16:44 -0800
changeset 7551 d7da0f26b875
parent 7550 47685fed5242
child 7552 17fdfad41903
PSARC/2016/619 snappy compression library 25291690 the library snappy should be added to userland
components/snappy/Makefile
components/snappy/snappy.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/snappy/Makefile	Mon Jan 09 17:16:44 2017 -0800
@@ -0,0 +1,45 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+#
+
+BUILD_BITS= 64_and_32
+COMPILER  = gcc
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=         snappy
+COMPONENT_VERSION=      1.1.3
+COMPONENT_ARCHIVE_HASH= \
+    sha256:2f1e82adf0868c9e26a5a7a3115111b6da7e432ddbac268a7ca2fae2a247eef3
+COMPONENT_ARCHIVE_URL=  https://github.com/google/snappy/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
+COMPONENT_PROJECT_URL=  http://google.github.io/snappy/
+
+TPNO = 31969
+
+CONFIGURE_OPTIONS.64 +=    --prefix=$(USRLIBDIR64)
+CONFIGURE_OPTIONS    +=    --prefix=$(USRLIBDIR)
+
+include $(WS_MAKE_RULES)/common.mk
+
+REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
+REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/snappy/snappy.p5m	Mon Jan 09 17:16:44 2017 -0800
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+#
+
+set name=pkg.fmri \
+    value=pkg:/library/snappy@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="compression/decompression library"
+set name=com.oracle.info.description \
+    value="snappy library for high speeds and reasonable compression"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value=org.opensolaris.category.2008:System/Libraries
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2016/619
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=usr/include/snappy-c.h
+file path=usr/include/snappy-sinksource.h
+file path=usr/include/snappy-stubs-public.h
+file path=usr/include/snappy.h
+link path=usr/lib/$(MACH64)/libsnappy.so target=libsnappy.so.1
+file path=usr/lib/$(MACH64)/libsnappy.so.1
+link path=usr/lib/libsnappy.so target=libsnappy.so.1
+file path=usr/lib/libsnappy.so.1
+dir  path=usr/share/doc/snappy
+file path=usr/share/doc/snappy/README
+file path=usr/share/doc/snappy/format_description.txt
+file path=usr/share/doc/snappy/framing_format.txt
+license COPYING license=BSD