You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2009-2012 OpenWrt.org
  3. # Copyright (C) 2009-2014 Thomas Heil <heil@terminal-consulting.de>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=memcached
  10. PKG_VERSION:=1.4.22
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://memcached.org/files
  14. PKG_MD5SUM:=2b7eefa17c811998f4cd55bfabc12b8e
  15. PKG_INSTALL:=1
  16. PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
  17. PKG_LICENSE:=permissive free software license
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/memcached
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=+libevent +libpthread
  23. TITLE:=The high-performance, distributed memory object caching system
  24. URL:=http://memcached.org/
  25. endef
  26. define Package/memcached/description
  27. Free and open source, high-performance, distributed memory object caching system
  28. endef
  29. define Package/memcached/conffiles
  30. /etc/config/memcached
  31. endef
  32. ifeq ($(CONFIG_BIG_ENDIAN),y)
  33. CONFIGURE_VARS += ac_cv_c_endian=big
  34. else
  35. CONFIGURE_VARS += ac_cv_c_endian=little
  36. endif
  37. CONFIGURE_ARGS += \
  38. --with-libevent=$(STAGING_DIR)/usr/include/libevent \
  39. --disable-docs \
  40. --disable-dtrace \
  41. --disable-coverage \
  42. --disable-sasl
  43. TARGET_CFLAGS += \
  44. -std=gnu99
  45. TARGET_LDFLAGS = \
  46. -L$(STAGING_DIR)/usr/lib/libevent -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
  47. define Package/memcached/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/memcached $(1)/usr/bin/
  50. $(INSTALL_DIR) $(1)/etc/config
  51. $(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
  52. $(INSTALL_DIR) $(1)/etc/init.d
  53. $(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
  54. endef
  55. $(eval $(call BuildPackage,memcached))