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.

59 lines
1.6 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.12.1
  11. PKG_RELEASE:=3
  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:=bbfaead0345642b97e0de90f889dfbab4b2643a6a5e5c6bb59cd0d26fc0bcd0e
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION)
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. PKG_USE_MIPS16:=0
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/liburcu
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=User-space Read-Copy-Update library
  28. URL:=https://lttng.org/
  29. DEPENDS:=+libpthread @!arc
  30. endef
  31. define Package/liburcu/description
  32. Userspace Read-Copy-Update library.
  33. endef
  34. ifeq ($(CONFIG_arc),)
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/urcu* $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.{a,so*} $(1)/usr/lib/
  40. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/
  42. endef
  43. endif
  44. define Package/liburcu/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.so.* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,liburcu))