memcached: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 17 Jul 2014 21:20:13 +0000 (18:20 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 18 Jul 2014 19:40:09 +0000 (21:40 +0200)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/memcached/Config.in [new file with mode: 0644]
package/memcached/memcached.mk [new file with mode: 0644]

index 15911c90e23741317b70ffed78ca42e213ac035f..ef191b3b7d21498e46c75abf1ff1612aaac44574 100644 (file)
@@ -982,6 +982,7 @@ endif
        source "package/linux-zigbee/Config.in"
        source "package/lrzsz/Config.in"
        source "package/macchanger/Config.in"
+       source "package/memcached/Config.in"
        source "package/mii-diag/Config.in"
        source "package/minidlna/Config.in"
        source "package/modem-manager/Config.in"
diff --git a/package/memcached/Config.in b/package/memcached/Config.in
new file mode 100644 (file)
index 0000000..e011d08
--- /dev/null
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_MEMCACHED
+       bool "memcached"
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_USE_MMU # fork()
+       select BR2_PACKAGE_LIBEVENT
+       help
+         Memcached is an in-memory key-value store for small chunks
+         of arbitrary data (strings, objects) from results of database calls,
+         API calls, or page rendering.
+
+         http://www.memcached.org/
+
+comment "memcached needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_USE_MMU
diff --git a/package/memcached/memcached.mk b/package/memcached/memcached.mk
new file mode 100644 (file)
index 0000000..17edcb6
--- /dev/null
@@ -0,0 +1,21 @@
+################################################################################
+#
+# memcached
+#
+################################################################################
+
+MEMCACHED_VERSION = 1.4.20
+MEMCACHED_SITE = http://www.memcached.org/files
+MEMCACHED_DEPENDENCIES = libevent
+MEMCACHED_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
+MEMCACHED_CONF_OPT = --disable-coverage --disable-docs
+MEMCACHED_LICENSE = BSD-3c
+MEMCACHED_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_ENDIAN),"BIG")
+MEMCACHED_CONF_ENV += ac_cv_c_endian=big
+else
+MEMCACHED_CONF_ENV += ac_cv_c_endian=little
+endif
+
+$(eval $(autotools-package))