2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=https
://www.samba.org
/ftp
/talloc
15 PKG_HASH
:=179f9ebe265e67e4ab2c26cad2b7de4b6a77c6c212f966903382869f06be6505
17 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
18 PKG_LICENSE
:=LGPL-3.0
-or-later
21 PKG_BUILD_DEPENDS
:=python3
/host
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/kernel.mk
26 define Package
/libtalloc
29 TITLE
:=Core memory allocator used in Samba
30 DEPENDS
:=$(ICONV_DEPENDS
) +libattr
31 URL
:=https
://talloc.samba.org
/talloc
/doc
/html
/index.html
34 define Package
/libtalloc
/description
35 talloc is a hierarchical
, reference counted memory pool system with destructors.
39 \nChecking simple C program: \"hello world\" \
40 \nrpath library support: (127, \"\") \
41 \n-Wl,--version-script support: (127, \"\") \
42 \nChecking getconf LFS_CFLAGS: NO \
43 \nChecking for large file support without additional flags: OK \
44 \nChecking correct behavior of strtoll: OK \
45 \nChecking for working strptime: NO \
46 \nChecking for C99 vsnprintf: \"1\" \
47 \nChecking for HAVE_SHARED_MMAP: NO \
48 \nChecking for HAVE_MREMAP: NO \
49 \nChecking for HAVE_INCOHERENT_MMAP: (2, \"\") \
50 \nChecking for HAVE_SECURE_MKSTEMP: OK \
53 define Build
/Configure
54 (cd
$(PKG_BUILD_DIR
); \
55 echo
-e
>cache.txt
$(CROSS
) " \
56 \nChecking uname machine type: \"$(ARCH)\" \
57 \nChecking uname release type: \"$(LINUX_VERSION)\" \
58 \nChecking uname sysname type: \"Linux\" \
59 \nChecking uname version type: \"$(LINUX_UNAME_VERSION)\" \
63 .
/buildtools
/bin
/waf configure \
66 --localstatedir
=/var \
67 --with-libiconv
="$(ICONV_PREFIX)" \
69 --cross-answers
=cache.txt \
72 --disable-rpath-install \
76 define Build
/InstallDev
77 $(INSTALL_DIR
) $(1)/usr
/lib
78 $(CP
) $(PKG_BUILD_DIR
)/bin
/default
/libtalloc.so
$(1)/usr
/lib
/
79 $(INSTALL_DIR
) $(1)/usr
/include
80 $(CP
) $(PKG_BUILD_DIR
)/*.h
$(1)/usr
/include/
81 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
82 $(CP
) $(PKG_BUILD_DIR
)/bin
/default
/talloc.
pc $(1)/usr
/lib
/pkgconfig
/
85 define Package
/libtalloc
/install
86 $(INSTALL_DIR
) $(1)/usr
/lib
87 $(CP
) $(PKG_BUILD_DIR
)/bin
/default
/libtalloc.so
$(1)/usr
/lib
/libtalloc.so.
$(MAJOR_VERSION
)
88 (cd
$(1)/usr
/lib
; ln
-sf libtalloc.so.
$(MAJOR_VERSION
) libtalloc.so
)
91 $(eval
$(call BuildPackage
,libtalloc
))