Merge pull request #8518 from neheb/i
[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.10.3
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:=9e8420f90d5f963f7aa32bc6d44adc1e491136f687c69ffb7a3075d33b40852b
17
18 PKG_MAINTAINER:=
19 PKG_LICENSE:=LGPL-2.1 GPL-2.0
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
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 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40 --without-pic
41
42 CONFIGURE_VARS += \
43 ac_cv_prog_BUILD_GEN_TP_EXAMPLES=no
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.pc $(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))