packages/luaexpat: fix whitespaces
[packages.git] / libs / liburcu / Makefile
1 #
2 # Copyright (C) 2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=liburcu
11 PKG_VERSION:=0.7.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=userspace-rcu-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://lttng.org/files/urcu/
16 PKG_MD5SUM:=4c1ecb4bdcd43e36dfdffdd297023c8b
17 PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION)
18
19 PKG_BUILD_PARALLEL:=1
20 PKG_INSTALL:=1
21 PKG_USE_MIPS16:=0
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/liburcu
26   SECTION:=libs
27   CATEGORY:=Libraries
28   DEPENDS:=+libpthread
29   TITLE:=User-space Read-Copy-Update library
30   URL:=https://lttng.org/
31 endef
32
33 define Package/liburcu/description
34    Userspace Read-Copy-Update library.
35 endef
36
37 define Build/InstallDev
38         $(INSTALL_DIR) $(1)/usr/include
39         $(CP) $(PKG_INSTALL_DIR)/usr/include/urcu* $(1)/usr/include/
40         $(INSTALL_DIR) $(1)/usr/lib
41         $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.{a,so*} $(1)/usr/lib/
42 endef
43
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
49 $(eval $(call BuildPackage,liburcu))