blob: 0e90bf8aa38b8060ab4fc5f62a0909e9f3664078 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2013-2015 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=lttng-ust
11PKG_VERSION:=2.13.5
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=https://lttng.org/files/$(PKG_NAME)/
16PKG_HASH:=f1d7bb4984a3dc5dacd3b7bcb4c10c04b041b0eecd7cba1fef3d8f86aff02bd6
17
18PKG_MAINTAINER:=
19PKG_LICENSE:=LGPL-2.1 GPL-2.0
20PKG_LICENSE_FILES:=COPYING
21PKG_CPE_ID:=cpe:/a:lttng:ust
22
23PKG_FIXUP:=autoreconf
24PKG_BUILD_FLAGS:=no-mips16
25PKG_BUILD_PARALLEL:=1
26PKG_INSTALL:=1
27
28include $(INCLUDE_DIR)/package.mk
29
30define Package/lttng-ust
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=Linux Trace Toolkit: next generation (library)
34 URL:=https://lttng.org/
35 DEPENDS:= +liburcu +libuuid +librt
36endef
37
38CONFIGURE_ARGS += \
39 --disable-numa \
40 --disable-python-agent \
41 --disable-examples \
42 --disable-man-pages \
43 --with-pic
44
45define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/lttng $(1)/usr/include/
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblttng-ust*.so* $(1)/usr/lib/
50 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lttng-ust* $(1)/usr/lib/pkgconfig/
52endef
53
54define Package/lttng-ust/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblttng*.so.* $(1)/usr/lib/
57endef
58
59$(eval $(call BuildPackage,lttng-ust))