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.

53 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. # Copyright (C) 2014-2018 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.9.5
  11. PKG_RELEASE:=1
  12. PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz>
  13. PKG_LICENSE:=LGPL-2.1 GPL-2.0 GPL-3.0 MIT
  14. PKG_SOURCE:=userspace-rcu-$(PKG_VERSION).tar.bz2
  15. PKG_SOURCE_URL:=https://lttng.org/files/urcu/
  16. PKG_HASH:=d948250f1b365f052b29a4c017b7d67066c905f6ab529892cc6bc35c503a38a6
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION)
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. PKG_USE_MIPS16:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/liburcu
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=User-space Read-Copy-Update library
  26. URL:=https://lttng.org/
  27. DEPENDS:=+libpthread @!arc
  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))