gcc: add old versions
[openadk.git] / package / talloc / Makefile
bloba296a7306661ab9dde3dc1fe8ac83dd31f566c6f
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= talloc
7 PKG_VERSION:= 2.4.2
8 PKG_RELEASE:= 1
9 PKG_HASH:= 85ecf9e465e20f98f9950a52e9a411e14320bc555fa257d87697b7e7a9b1d8a6
10 PKG_DESCR:= memory allocation library
11 PKG_SECTION:= libs/misc
12 PKG_BUILDDEP:= python3-host python3
13 PKG_URL:= https://talloc.samba.org/talloc/doc/html/index.html
14 PKG_SITES:= https://www.samba.org/ftp/talloc/
15 PKG_LIBNAME:= libtalloc
16 PKG_OPTS:= dev
18 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
20 include $(ADK_TOPDIR)/mk/package.mk
22 $(eval $(call PKG_template,LIBTALLOC,libtalloc,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
24 CONFIG_STYLE:= minimal
25 CONFIGURE_ARGS+= --prefix=/usr \
26 --disable-python \
27 --cross-compile \
28 --cross-answers=$(WRKSRC)/cache.txt \
29 --hostcc=gcc
31 CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
32 python_LDFLAGS="" \
33 python_LIBDIR=""
35 pre-configure:
36 $(CP) ./files/cache.txt $(WRKSRC)
37 echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
39 libtalloc-install:
40 $(INSTALL_DIR) $(IDIR_LIBTALLOC)/usr/lib
41 $(CP) $(WRKINST)/usr/lib/libtalloc.so* \
42 $(IDIR_LIBTALLOC)/usr/lib
44 include $(ADK_TOPDIR)/mk/pkg-bottom.mk