Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libtracefs
  3. PKG_VERSION:=1.6.4
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/
  7. PKG_HASH:=52ce793dbb35a3e59bddce31de09a5d92cedd4d0702e64d0916f1ccdb00526c9
  8. PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
  9. PKG_FIXUP:=autoreconf
  10. PKG_INSTALL:=1
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/libtracefs
  13. SECTION:=libs
  14. CATEGORY:=Libraries
  15. TITLE:=Linux kernel trace file system library
  16. URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git
  17. DEPENDS+=+libpthread +libtraceevent
  18. ABI_VERSION:=0
  19. endef
  20. define Package/libtracefs/description
  21. The libtracefs library provides APIs to access kernel trace file system.
  22. endef
  23. CONFIGURE_ARGS+= \
  24. --enable-shared \
  25. --enable-static \
  26. define Build/InstallDev
  27. $(INSTALL_DIR) $(1)/usr/include
  28. $(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/
  29. $(INSTALL_DIR) $(1)/usr/lib
  30. $(CP) $(PKG_BUILD_DIR)/lib/libtracefs.{a,so*} $(1)/usr/lib/
  31. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  32. $(CP) $(PKG_BUILD_DIR)/libtracefs.pc $(1)/usr/lib/pkgconfig/
  33. endef
  34. define Package/libtracefs/install
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_BUILD_DIR)/lib/libtracefs.so.* $(1)/usr/lib/
  37. endef
  38. $(eval $(call BuildPackage,libtracefs))