The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / python-m2crypto / python-m2crypto.mk
1 ################################################################################
2 #
3 # python-m2crypto
4 #
5 ################################################################################
6
7 PYTHON_M2CRYPTO_VERSION = 0.21.1
8 PYTHON_M2CRYPTO_SITE = http://pypi.python.org/packages/source/M/M2Crypto
9 PYTHON_M2CRYPTO_SOURCE = M2Crypto-$(PYTHON_M2CRYPTO_VERSION).tar.gz
10 PYTHON_M2CRYPTO_SETUP_TYPE = setuptools
11 HOST_PYTHON_M2CRYPTO_DEPENDENCIES = host-openssl host-swig
12
13 # We need to use python2 because m2crypto is not python3 compliant.
14 HOST_PYTHON_M2CRYPTO_NEEDS_HOST_PYTHON = python2
15
16 # * We need to override the build commands to be able to use build_ext,
17 #   which accepts the --openssl option.
18 # * Use python2 interpreter to avoid trying building some python3 objects.
19 define HOST_PYTHON_M2CRYPTO_BUILD_CMDS
20         (cd $(@D); \
21                 $(HOST_PKG_PYTHON_SETUPTOOLS_ENV) \
22                 $(HOST_DIR)/usr/bin/python2 setup.py build_ext \
23                         --openssl=$(HOST_DIR)/usr)
24 endef
25
26 $(eval $(host-python-package))