summaryrefslogtreecommitdiffstats
path: root/package/redis/redis.mk
diff options
context:
space:
mode:
authorDaniel Price <daniel.price@gmail.com>2013-03-11 15:47:11 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-03-18 22:42:02 +0100
commit80a902c407462dbd2d239ded97c2cdf66fae4a51 (patch)
tree868194db477000a6f030b8aa8d3c660aa1a90006 /package/redis/redis.mk
parent96879b87a90d8c1e4de3c399a9e8df6dc4537180 (diff)
downloadbuildroot-novena-80a902c407462dbd2d239ded97c2cdf66fae4a51.tar.gz
buildroot-novena-80a902c407462dbd2d239ded97c2cdf66fae4a51.zip
new package: redis
[Peter: fix white space, drop _SOURCE] Signed-off-by: Daniel Price <daniel.price@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
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 000000000..fc7d23fec
--- /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))