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.

51 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2014 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
  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:=liburcu
  9. PKG_VERSION:=0.7.12
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=userspace-rcu-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_SUBDIR:=userspace-rcu-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=https://lttng.org/files/urcu/
  14. PKG_MD5SUM:=5957c9f5d2d4a483dcada7f313b539ca
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION)
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. PKG_USE_MIPS16:=0
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/liburcu
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=User-space Read-Copy-Update library
  24. URL:=https://lttng.org/
  25. MAINTAINER:=daniel.salzman@nic.cz
  26. DEPENDS:=+libpthread
  27. endef
  28. define Package/liburcu/description
  29. Userspace Read-Copy-Update library.
  30. endef
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include
  33. $(CP) $(PKG_INSTALL_DIR)/usr/include/urcu* $(1)/usr/include/
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.{a,so*} $(1)/usr/lib/
  36. endef
  37. define Package/liburcu/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.so.* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,liburcu))