python: make hashlib and readline modules really optional
[buildroot-gz.git] / package / python-cffi / python-cffi.mk
blob8683665496a280e9a3dcfe1548e0e7748afcd641
1 ################################################################################
3 # python-cffi
5 ################################################################################
7 PYTHON_CFFI_VERSION = 1.9.1
8 PYTHON_CFFI_SOURCE = cffi-$(PYTHON_CFFI_VERSION).tar.gz
9 PYTHON_CFFI_SITE = https://pypi.python.org/packages/a1/32/e3d6c3a8b5461b903651dd6ce958ed03c093d2e00128e3f33ea69f1d7965
10 PYTHON_CFFI_SETUP_TYPE = setuptools
11 PYTHON_CFFI_DEPENDENCIES = host-pkgconf libffi
12 PYTHON_CFFI_LICENSE = MIT
13 PYTHON_CFFI_LICENSE_FILES = LICENSE
15 # This host package uses pkg-config to find libffi, so we have to
16 # provide the proper hints for pkg-config to behave properly for host
17 # packages.
18 HOST_PYTHON_CFFI_ENV = \
19 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
20 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
21 PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
22 PKG_CONFIG_SYSROOT_DIR="/" \
23 PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig:$(HOST_DIR)/usr/share/pkgconfig"
24 HOST_PYTHON_CFFI_DEPENDENCIES = host-pkgconf host-python-pycparser host-libffi
26 $(eval $(python-package))
27 $(eval $(host-python-package))