python-m2crypto.mk 776 B

12345678910111213141516171819202122
  1. ################################################################################
  2. #
  3. # python-m2crypto
  4. #
  5. ################################################################################
  6. PYTHON_M2CRYPTO_VERSION = 0.21.1
  7. PYTHON_M2CRYPTO_SITE = http://pypi.python.org/packages/source/M/M2Crypto
  8. PYTHON_M2CRYPTO_SOURCE = M2Crypto-$(PYTHON_M2CRYPTO_VERSION).tar.gz
  9. PYTHON_M2CRYPTO_SETUP_TYPE = setuptools
  10. HOST_PYTHON_M2CRYPTO_DEPENDENCIES = host-openssl host-swig
  11. # We need to override the build commands to be able to use build_ext,
  12. # which accepts the --openssl option.
  13. define HOST_PYTHON_M2CRYPTO_BUILD_CMDS
  14. (cd $(@D); \
  15. $(HOST_PKG_PYTHON_SETUPTOOLS_ENV) \
  16. $(HOST_DIR)/usr/bin/python setup.py build_ext \
  17. --openssl=$(HOST_DIR)/usr)
  18. endef
  19. $(eval $(host-python-package))