Patchwork [3/3] package/snappy: new package

login
register
mail settings
Submitter Yann E. MORIN
Date May 14, 2013, 9:45 p.m.
Message ID <593d227bcb531b484e9a613baee53d3acaf9370b.1368567696.git.yann.morin.1998@free.fr>
Download mbox | patch
Permalink /patch/243834/
State Accepted
Headers show

Comments

Yann E. MORIN - May 14, 2013, 9:45 p.m.
From: "Yann E. MORIN" <yann.morin.1998@free.fr>

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in        |  1 +
 package/snappy/Config.in |  9 +++++++++
 package/snappy/snappy.mk | 13 +++++++++++++
 3 files changed, 23 insertions(+)
 create mode 100644 package/snappy/Config.in
 create mode 100644 package/snappy/snappy.mk
Peter Korsgaard - May 30, 2013, 9:04 p.m.
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 Yann> From: "Yann E. MORIN" <yann.morin.1998@free.fr>
 Yann> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

 Yann> ---
 Yann>  package/Config.in        |  1 +
 Yann>  package/snappy/Config.in |  9 +++++++++
 Yann>  package/snappy/snappy.mk | 13 +++++++++++++
 Yann>  3 files changed, 23 insertions(+)
 Yann>  create mode 100644 package/snappy/Config.in
 Yann>  create mode 100644 package/snappy/snappy.mk

 Yann> diff --git a/package/Config.in b/package/Config.in
 Yann> index 828b5b5..51e9f93 100644
 Yann> --- a/package/Config.in
 Yann> +++ b/package/Config.in
 Yann> @@ -383,6 +383,7 @@ endmenu
 Yann>  menu "Compression and decompression"
 Yann>  source "package/libarchive/Config.in"
 Yann>  source "package/lzo/Config.in"
 Yann> +source "package/snappy/Config.in"
 Yann>  source "package/zlib/Config.in"
 Yann>  endmenu
 
 Yann> diff --git a/package/snappy/Config.in b/package/snappy/Config.in
 Yann> new file mode 100644
 Yann> index 0000000..62136ca
 Yann> --- /dev/null
 Yann> +++ b/package/snappy/Config.in
 Yann> @@ -0,0 +1,9 @@
 Yann> +config BR2_PACKAGE_SNAPPY
 Yann> +	bool "snappy"
 Yann> +	help

It's implemented in C++, so it needs to depend on BR2_INSTALL_LIBSTDCPP.

Committed to next with that fixed, thanks.

Patch

diff --git a/package/Config.in b/package/Config.in
index 828b5b5..51e9f93 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -383,6 +383,7 @@  endmenu
 menu "Compression and decompression"
 source "package/libarchive/Config.in"
 source "package/lzo/Config.in"
+source "package/snappy/Config.in"
 source "package/zlib/Config.in"
 endmenu
 
diff --git a/package/snappy/Config.in b/package/snappy/Config.in
new file mode 100644
index 0000000..62136ca
--- /dev/null
+++ b/package/snappy/Config.in
@@ -0,0 +1,9 @@ 
+config BR2_PACKAGE_SNAPPY
+	bool "snappy"
+	help
+	  Snappy is a compression/decompression library. It does not aim for
+	  maximum compression, or compatibility with any other compression
+	  library; instead, it aims for very high speeds and reasonable
+	  compression.
+
+	  http://code.google.com/p/snappy/
diff --git a/package/snappy/snappy.mk b/package/snappy/snappy.mk
new file mode 100644
index 0000000..2704b97
--- /dev/null
+++ b/package/snappy/snappy.mk
@@ -0,0 +1,13 @@ 
+#############################################################
+#
+# snappy
+#
+#############################################################
+
+SNAPPY_VERSION		= 1.1.0
+SNAPPY_SITE		= http://snappy.googlecode.com/files/
+SNAPPY_LICENSE		= BSD-3c
+SNAPPY_LICENSE_FILES	= COPYING
+SNAPPY_INSTALL_STAGING	= YES
+
+$(eval $(autotools-package))