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.

52 lines
1.3 KiB

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