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.

72 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.34
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://memcached.org/files
  14. PKG_MD5SUM:=040887d52dfcc88b2e8918b4bfd91bf5
  15. PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
  16. PKG_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/memcached
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS:=+libevent2 +libpthread
  24. TITLE:=The high-performance, distributed memory object caching system
  25. URL:=http://memcached.org/
  26. endef
  27. define Package/memcached/description
  28. Free and open source, high-performance, distributed memory object caching system
  29. endef
  30. define Package/memcached/conffiles
  31. /etc/config/memcached
  32. endef
  33. ifeq ($(CONFIG_BIG_ENDIAN),y)
  34. CONFIGURE_VARS += ac_cv_c_endian=big
  35. else
  36. CONFIGURE_VARS += ac_cv_c_endian=little
  37. endif
  38. CONFIGURE_ARGS += \
  39. --with-libevent=$(STAGING_DIR)/usr/include/libevent \
  40. --disable-docs \
  41. --disable-dtrace \
  42. --disable-coverage \
  43. --disable-sasl
  44. TARGET_CFLAGS += \
  45. -std=gnu99
  46. TARGET_LDFLAGS = \
  47. -L$(STAGING_DIR)/usr/lib/libevent -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
  48. define Package/memcached/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/memcached $(1)/usr/bin/
  51. $(INSTALL_DIR) $(1)/etc/config
  52. $(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
  53. $(INSTALL_DIR) $(1)/etc/init.d
  54. $(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
  55. endef
  56. $(eval $(call BuildPackage,memcached))