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.

56 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2010-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=hiredis
  9. PKG_VERSION:=0.13.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/redis/hiredis.git
  13. PKG_SOURCE_VERSION:=010756025e8cefd1bc66c6d4ed3b1648ef6f1f95
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. PKG_MIRROR_HASH:=ac774e318215cbfad4b8e493a84b4fe9a03f9882828ea01eac5357f28b5e9cd4
  17. PKG_LICENSE:=BSD-3-Clause
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libhiredis
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Minimalistic C client for Redis
  26. URL:=https://github.com/redis/hiredis
  27. endef
  28. define Package/libhiredis/description
  29. Hiredis is a minimalistic C client library for the Redis database.
  30. endef
  31. MAKE_FLAGS += ARCH="" DEBUG="" PREFIX="/usr"
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/include/hiredis/adapters
  34. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hiredis/adapters/* $(1)/usr/include/hiredis/adapters
  35. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hiredis/*.h $(1)/usr/include/hiredis/
  36. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhiredis.{so*,a} $(1)/usr/lib/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/hiredis.pc $(1)/usr/lib/pkgconfig
  39. endef
  40. define Package/libhiredis/install
  41. $(INSTALL_DIR) $(1)/usr/lib/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhiredis.so* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libhiredis))