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