2 # Copyright (C) 2013-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://lttng.org/files/$(PKG_NAME)/
16 PKG_MD5SUM:=5c7de27a9968e01ac0b08c7c9cf554d0
18 PKG_LICENSE:=LGPL-2.1 GPL-2.0
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
27 include $(INCLUDE_DIR)/package.mk
29 define Package/lttng-ust
32 TITLE:=Linux Trace Toolkit: next generation (library)
33 URL:=https://lttng.org/
34 DEPENDS:= +liburcu +libuuid +librt
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include
39 $(CP) $(PKG_INSTALL_DIR)/usr/include/lttng $(1)/usr/include/
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblttng-ust*.{a,so*} $(1)/usr/lib/
42 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lttng-ust.pc $(1)/usr/lib/pkgconfig/
46 define Package/lttng-ust/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblttng*.so.* $(1)/usr/lib/
51 $(eval $(call BuildPackage,lttng-ust))