No Description

Makefile 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.20
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://memcached.org/files
  14. PKG_MD5SUM:=92f702bcb28d7bec8fdf9418360fc062
  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))