python-m2crypto.mk 974 B

1234567891011121314151617181920212223242526
  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 use python2 because m2crypto is not python3 compliant.
  12. HOST_PYTHON_M2CRYPTO_NEEDS_HOST_PYTHON = python2
  13. # * We need to override the build commands to be able to use build_ext,
  14. # which accepts the --openssl option.
  15. # * Use python2 interpreter to avoid trying building some python3 objects.
  16. define HOST_PYTHON_M2CRYPTO_BUILD_CMDS
  17. (cd $(@D); \
  18. $(HOST_PKG_PYTHON_SETUPTOOLS_ENV) \
  19. $(HOST_DIR)/usr/bin/python2 setup.py build_ext \
  20. --openssl=$(HOST_DIR)/usr)
  21. endef
  22. $(eval $(host-python-package))