noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / libs / liburcu / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=liburcu
12 PKG_VERSION:=0.9.2
13 PKG_RELEASE:=1
14
15 PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz>
16 PKG_LICENSE:=LGPL-2.1 GPL-2.0 GPL-3.0 MIT
17
18 PKG_SOURCE:=userspace-rcu-$(PKG_VERSION).tar.bz2
19 PKG_SOURCE_URL:=https://lttng.org/files/urcu/
20 PKG_MD5SUM:=49f86e68c1e2f41d303381a271b791d1
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION)
23 PKG_BUILD_PARALLEL:=1
24 PKG_INSTALL:=1
25 PKG_USE_MIPS16:=0
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/liburcu
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=User-space Read-Copy-Update library
33 URL:=https://lttng.org/
34 DEPENDS:=+libpthread
35 endef
36
37 define Package/liburcu/description
38 Userspace Read-Copy-Update library.
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/urcu* $(1)/usr/include/
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.{a,so*} $(1)/usr/lib/
46 endef
47
48 define Package/liburcu/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.so.* $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,liburcu))