No Description

Makefile 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lttng-tools
  9. PKG_VERSION:=2.6.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://lttng.org/files/$(PKG_NAME)/
  13. PKG_MD5SUM:=0478f60395f9564b4a19f45ce7b7f3df
  14. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  17. PKG_FIXUP:=autoreconf
  18. PKG_USE_MIPS16:=0
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/lttng-tools
  23. SECTION:=devel
  24. CATEGORY:=Development
  25. TITLE:=Linux Trace Toolkit: next generation (tools)
  26. URL:=https://lttng.org/
  27. DEPENDS:= +lttng-ust +libpopt +libxml2
  28. endef
  29. CONFIGURE_ARGS += --disable-kmod
  30. TARGET_LDFLAGS += -lurcu-bp
  31. MAKE_FLAGS += V="$(V)"
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/include
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/lttng $(1)/usr/include/
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblttng-ctl*.{a,so*} $(1)/usr/lib/
  37. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lttng-ctl.pc $(1)/usr/lib/pkgconfig/
  39. endef
  40. define Package/lttng-tools/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblttng-ctl*.so.* $(1)/usr/lib/
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lttng $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lttng* $(1)/usr/bin/
  46. endef
  47. $(eval $(call BuildPackage,lttng-tools))