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