Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. # Copyright (C) 2014-2016 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.2
  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_MD5SUM:=49f86e68c1e2f41d303381a271b791d1
  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
  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))