2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-29 10:57:48 +02:00
|
|
|
#
|
|
|
|
# python-m2crypto
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-29 10:57:48 +02:00
|
|
|
|
|
|
|
PYTHON_M2CRYPTO_VERSION = 0.21.1
|
|
|
|
PYTHON_M2CRYPTO_SITE = http://pypi.python.org/packages/source/M/M2Crypto
|
|
|
|
PYTHON_M2CRYPTO_SOURCE = M2Crypto-$(PYTHON_M2CRYPTO_VERSION).tar.gz
|
2013-12-11 21:26:42 +01:00
|
|
|
PYTHON_M2CRYPTO_SETUP_TYPE = setuptools
|
|
|
|
HOST_PYTHON_M2CRYPTO_DEPENDENCIES = host-openssl host-swig
|
2013-04-29 10:57:48 +02:00
|
|
|
|
2013-12-11 21:26:42 +01:00
|
|
|
# We need to override the build commands to be able to use build_ext,
|
|
|
|
# which accepts the --openssl option.
|
2013-04-29 10:57:48 +02:00
|
|
|
define HOST_PYTHON_M2CRYPTO_BUILD_CMDS
|
|
|
|
(cd $(@D); \
|
2013-12-11 21:26:42 +01:00
|
|
|
$(HOST_PKG_PYTHON_SETUPTOOLS_ENV) \
|
|
|
|
$(HOST_DIR)/usr/bin/python setup.py build_ext \
|
|
|
|
--openssl=$(HOST_DIR)/usr)
|
2013-04-29 10:57:48 +02:00
|
|
|
endef
|
|
|
|
|
2013-12-11 21:26:42 +01:00
|
|
|
$(eval $(host-python-package))
|