Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.git] / libs / lttng-ust / Makefile
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.12.0
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:=1983edb525f3f27e3494088d8d5389b4c71af66bbfe63c6f1df2ad95aa44a528
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_USE_MIPS16:=0
24 PKG_BUILD_PARALLEL:=1
25 PKG_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/lttng-ust
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Linux Trace Toolkit: next generation (library)
33 URL:=https://lttng.org/
34 DEPENDS:= +liburcu +libuuid +librt
35 endef
36
37 CONFIGURE_ARGS += \
38 --disable-numa \
39 --disable-python-agent \
40 --disable-examples \
41 --disable-man-pages \
42 --with-pic
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/lttng $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblttng-ust*.so* $(1)/usr/lib/
49 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lttng-ust* $(1)/usr/lib/pkgconfig/
51 endef
52
53 define Package/lttng-ust/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblttng*.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,lttng-ust))