# # Copyright (C) 2015 OpenWrt.org # Copyright (C) 2014-2018 CZ.NIC, z.s.p.o. # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=liburcu PKG_VERSION:=0.14.0 PKG_RELEASE:=1 PKG_MAINTAINER:=Daniel Salzman PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later MIT PKG_LICENSE_FILES:=lgpl-2.1.txt gpl-2.0.txt lgpl-relicensing.txt PKG_SOURCE:=userspace-rcu-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://lttng.org/files/urcu/ PKG_HASH:=ca43bf261d4d392cff20dfae440836603bf009fce24fdc9b2697d837a2239d4f PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION) PKG_FIXUP:=autoreconf PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 PKG_BUILD_FLAGS:=no-mips16 include $(INCLUDE_DIR)/package.mk define Package/liburcu SECTION:=libs CATEGORY:=Libraries TITLE:=User-space Read-Copy-Update library URL:=https://lttng.org/ DEPENDS:=+libpthread @!arc endef define Package/liburcu/description Userspace Read-Copy-Update library. endef ifeq ($(CONFIG_arc),) define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/urcu* $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.{a,so*} $(1)/usr/lib/ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/ endef endif define Package/liburcu/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.so.* $(1)/usr/lib/ endef $(eval $(call BuildPackage,liburcu))