You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.7 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=talloc
  7. PKG_VERSION:=2.1.14
  8. MAJOR_VERSION:=2
  9. PKG_RELEASE:=3
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://www.samba.org/ftp/talloc
  12. PKG_HASH:=b185602756a628bac507fa8af8b9df92ace69d27c0add5dab93190ad7c3367ce
  13. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  14. PKG_LICENSE:=LGPL-3.0-or-later
  15. PKG_BUILD_PARALLEL:=0
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/kernel.mk
  18. define Package/libtalloc
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Core memory allocator used in Samba
  22. DEPENDS:=$(ICONV_DEPENDS) +libattr
  23. URL:=https://talloc.samba.org/talloc/doc/html/index.html
  24. endef
  25. define Package/libtalloc/description
  26. talloc is a hierarchical, reference counted memory pool system with destructors.
  27. endef
  28. CROSS = " \
  29. \nChecking simple C program: OK \
  30. \nrpath library support: OK \
  31. \n-Wl,--version-script support: OK \
  32. \nChecking getconf LFS_CFLAGS: NO \
  33. \nChecking for large file support without additional flags: OK \
  34. \nChecking for -D_LARGE_FILES: OK \
  35. \nChecking correct behavior of strtoll: NO \
  36. \nChecking for working strptime: OK \
  37. \nChecking for C99 vsnprintf: OK \
  38. \nChecking for HAVE_SHARED_MMAP: OK \
  39. \nChecking for HAVE_MREMAP: OK \
  40. \nChecking for HAVE_INCOHERENT_MMAP: NO \
  41. \nChecking for HAVE_SECURE_MKSTEMP: OK \
  42. \nChecking for HAVE_IFACE_GETIFADDRS: OK \
  43. \nChecking for kernel change notify support: OK \
  44. \nChecking for Linux kernel oplocks: OK \
  45. \nChecking for kernel share modes: OK \
  46. \nChecking if can we convert from CP850 to UCS-2LE: OK \
  47. \nChecking if can we convert from UTF-8 to UCS-2LE: OK \
  48. \nChecking whether we can use Linux thread-specific credentials with 32-bit system calls: OK \
  49. \nChecking whether we can use Linux thread-specific credentials: OK \
  50. \nChecking whether setreuid is available: OK \
  51. \nChecking whether setresuid is available: OK \
  52. \nChecking whether seteuid is available: OK \
  53. \nChecking whether fcntl locking is available: OK \
  54. \nChecking for the maximum value of the 'time_t' type: OK \
  55. \nChecking whether the realpath function allows a NULL argument: OK \
  56. \nChecking whether POSIX capabilities are available: OK \
  57. \nChecking for ftruncate extend: OK \
  58. \nvfs_fileid checking for statfs() and struct statfs.f_fsid: OK \
  59. \ngetcwd takes a NULL argument: OK \
  60. \nChecking value of NSIG: \"65\" \
  61. \nChecking value of _NSIG: \"65\" \
  62. \nChecking value of SIGRTMAX: \"64\" \
  63. \nChecking value of SIGRTMIN: \"34\" \
  64. \nChecking if toolchain accepts -fstack-protector: OK \
  65. \n"
  66. define Build/Configure
  67. (cd $(PKG_BUILD_DIR); \
  68. echo -e >cache.txt $(CROSS) " \
  69. \nChecking uname machine type: \"$(ARCH)\" \
  70. \nChecking uname release type: \"$(LINUX_VERSION)\" \
  71. \nChecking uname sysname type: \"Linux\" \
  72. \nChecking uname version type: \"$(LINUX_UNAME_VERSION)\" \
  73. \n" ; \
  74. $(CONFIGURE_VARS) \
  75. ./buildtools/bin/waf configure \
  76. --prefix=/usr \
  77. --sysconfdir=/etc \
  78. --localstatedir=/var \
  79. --with-libiconv="$(ICONV_PREFIX)" \
  80. --cross-compile \
  81. --cross-answers=$(PKG_BUILD_DIR)/cache.txt \
  82. --disable-rpath \
  83. --disable-rpath-install \
  84. )
  85. endef
  86. define Build/InstallDev
  87. $(INSTALL_DIR) $(1)/usr/lib
  88. $(CP) $(PKG_BUILD_DIR)/bin/default/libtalloc.so $(1)/usr/lib/
  89. $(INSTALL_DIR) $(1)/usr/include
  90. $(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/
  91. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  92. $(CP) $(PKG_BUILD_DIR)/bin/default/talloc.pc $(1)/usr/lib/pkgconfig/
  93. endef
  94. define Package/libtalloc/install
  95. $(INSTALL_DIR) $(1)/usr/lib
  96. $(CP) $(PKG_BUILD_DIR)/bin/default/libtalloc.so $(1)/usr/lib/libtalloc.so.$(MAJOR_VERSION)
  97. (cd $(1)/usr/lib; ln -sf libtalloc.so.$(MAJOR_VERSION) libtalloc.so)
  98. endef
  99. $(eval $(call BuildPackage,libtalloc))