aboutsummaryrefslogtreecommitdiff
path: root/package/redis/redis.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/redis/redis.mk')
-rw-r--r--package/redis/redis.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/redis/redis.mk b/package/redis/redis.mk
new file mode 100644
index 0000000000..fc7d23fec0
--- /dev/null
+++ b/package/redis/redis.mk
@@ -0,0 +1,27 @@
+#############################################################
+#
+# redis
+#
+#############################################################
+
+REDIS_VERSION = 2.6.11
+REDIS_SITE = http://redis.googlecode.com/files
+REDIS_LICENSE = BSD-3c (core); MIT and BSD family licenses (Bundled components)
+REDIS_LICENSE_FILES = COPYING
+
+# Redis doesn't support DESTDIR (yet, see
+# https://github.com/antirez/redis/pull/609). We set PREFIX
+# instead.
+REDIS_BUILDOPTS = $(TARGET_CONFIGURE_OPTS) \
+ PREFIX=$(TARGET_DIR)/usr MALLOC=libc \
+
+define REDIS_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) $(REDIS_BUILDOPTS) -C $(@D)
+endef
+
+define REDIS_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) $(REDIS_BUILDOPTS) -C $(@D) \
+ LDCONFIG=true install
+endef
+
+$(eval $(generic-package))