1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libhiredis
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Minimalistic C client for Redis
  25. URL:=https://github.com/redis/hiredis
  26. endef
  27. define Package/libhiredis/description
  28. Hiredis is a minimalistic C client library for the Redis database.
  29. endef
  30. MAKE_FLAGS += ARCH="" DEBUG="" PREFIX="/usr"
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include/hiredis/adapters
  33. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hiredis/adapters/* $(1)/usr/include/hiredis/adapters
  34. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hiredis/*.h $(1)/usr/include/hiredis/
  35. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhiredis.{so*,a} $(1)/usr/lib/
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/hiredis.pc $(1)/usr/lib/pkgconfig
  38. endef
  39. define Package/libhiredis/install
  40. $(INSTALL_DIR) $(1)/usr/lib/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhiredis.so* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libhiredis))