Merge pull request #1596 from danielg4/master
[feed/packages.git] / libs / liburcu / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 # Copyright (C) 2014 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.8.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=userspace-rcu-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_SUBDIR:=userspace-rcu-$(PKG_VERSION)
17 PKG_SOURCE_URL:=https://lttng.org/files/urcu/
18 PKG_MD5SUM:=7a6ee17871d31226db3f618e28351d22
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION)
21 PKG_BUILD_PARALLEL:=1
22 PKG_INSTALL:=1
23 PKG_USE_MIPS16:=0
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/liburcu
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=User-space Read-Copy-Update library
31 URL:=https://lttng.org/
32 MAINTAINER:=daniel.salzman@nic.cz
33 DEPENDS:=+libpthread
34 endef
35
36 define Package/liburcu/description
37 Userspace Read-Copy-Update library.
38 endef
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/urcu* $(1)/usr/include/
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.{a,so*} $(1)/usr/lib/
45 endef
46
47 define Package/liburcu/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.so.* $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,liburcu))