summaryrefslogtreecommitdiff
path: root/package/talloc/Makefile
blob: a296a7306661ab9dde3dc1fe8ac83dd31f566c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		talloc
PKG_VERSION:=		2.4.2
PKG_RELEASE:=		1
PKG_HASH:=		85ecf9e465e20f98f9950a52e9a411e14320bc555fa257d87697b7e7a9b1d8a6
PKG_DESCR:=		memory allocation library
PKG_SECTION:=		libs/misc
PKG_BUILDDEP:=		python3-host python3
PKG_URL:=		https://talloc.samba.org/talloc/doc/html/index.html
PKG_SITES:=		https://www.samba.org/ftp/talloc/
PKG_LIBNAME:=		libtalloc
PKG_OPTS:=		dev

DISTFILES:=             $(PKG_NAME)-$(PKG_VERSION).tar.gz

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,LIBTALLOC,libtalloc,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

CONFIG_STYLE:=		minimal
CONFIGURE_ARGS+=	--prefix=/usr \
			--disable-python \
			--cross-compile \
			--cross-answers=$(WRKSRC)/cache.txt \
			--hostcc=gcc

CONFIGURE_ENV+=		PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
			python_LDFLAGS="" \
			python_LIBDIR=""

pre-configure:
	$(CP) ./files/cache.txt $(WRKSRC)
	echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt

libtalloc-install:
	$(INSTALL_DIR) $(IDIR_LIBTALLOC)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libtalloc.so* \
		$(IDIR_LIBTALLOC)/usr/lib

include $(ADK_TOPDIR)/mk/pkg-bottom.mk