| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=lttng-ust |
| 11 | PKG_VERSION:=2.13.5 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 15 | PKG_SOURCE_URL:=https://lttng.org/files/$(PKG_NAME)/ |
| 16 | PKG_HASH:=f1d7bb4984a3dc5dacd3b7bcb4c10c04b041b0eecd7cba1fef3d8f86aff02bd6 |
| 17 | |
| 18 | PKG_MAINTAINER:= |
| 19 | PKG_LICENSE:=LGPL-2.1 GPL-2.0 |
| 20 | PKG_LICENSE_FILES:=COPYING |
| 21 | PKG_CPE_ID:=cpe:/a:lttng:ust |
| 22 | |
| 23 | PKG_FIXUP:=autoreconf |
| 24 | PKG_BUILD_FLAGS:=no-mips16 |
| 25 | PKG_BUILD_PARALLEL:=1 |
| 26 | PKG_INSTALL:=1 |
| 27 | |
| 28 | include $(INCLUDE_DIR)/package.mk |
| 29 | |
| 30 | define 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 |
| 36 | endef |
| 37 | |
| 38 | CONFIGURE_ARGS += \ |
| 39 | --disable-numa \ |
| 40 | --disable-python-agent \ |
| 41 | --disable-examples \ |
| 42 | --disable-man-pages \ |
| 43 | --with-pic |
| 44 | |
| 45 | define 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/ |
| 52 | endef |
| 53 | |
| 54 | define Package/lttng-ust/install |
| 55 | $(INSTALL_DIR) $(1)/usr/lib |
| 56 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblttng*.so.* $(1)/usr/lib/ |
| 57 | endef |
| 58 | |
| 59 | $(eval $(call BuildPackage,lttng-ust)) |