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.

54 lines
1.4 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.11.1
  11. PKG_RELEASE:=1
  12. PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz>
  13. PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later MIT
  14. PKG_LICENSE_FILES:=lgpl-2.1.txt gpl-2.0.txt lgpl-relicensing.txt
  15. PKG_SOURCE:=userspace-rcu-$(PKG_VERSION).tar.bz2
  16. PKG_SOURCE_URL:=https://lttng.org/files/urcu/
  17. PKG_HASH:=92b9971bf3f1c443edd6c09e7bf5ff3b43531e778841f16377a812c8feeb3350
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION)
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. PKG_USE_MIPS16:=0
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/liburcu
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=User-space Read-Copy-Update library
  27. URL:=https://lttng.org/
  28. DEPENDS:=+libpthread @!arc
  29. endef
  30. define Package/liburcu/description
  31. Userspace Read-Copy-Update library.
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/urcu* $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.{a,so*} $(1)/usr/lib/
  38. endef
  39. define Package/liburcu/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.so.* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,liburcu))