2
1

python-pycrypto.mk 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ################################################################################
  2. #
  3. # python-pycrypto
  4. #
  5. ################################################################################
  6. PYTHON_PYCRYPTO_VERSION = 2.6
  7. PYTHON_PYCRYPTO_SOURCE = pycrypto-$(PYTHON_PYCRYPTO_VERSION).tar.gz
  8. PYTHON_PYCRYPTO_SITE = http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto
  9. PYTHON_PYCRYPTO_SETUP_TYPE = distutils
  10. PYTHON_PYCRYPTO_LICENSE = Public Domain, Python 2.2 License (HMAC.py, setup.py)
  11. PYTHON_PYCRYPTO_LICENSE_FILES = COPYRIGHT LEGAL/copy/LICENSE.libtom \
  12. LEGAL/copy/LICENSE.python-2.2
  13. # The pycrypto package contains a LICENSE.orig file, but our patching
  14. # infrastrucure removes all .orig file, so we must rename that license
  15. # file prior to patching, so it is still available to the legal-info
  16. # infrastructure
  17. define PYTHON_PYCRYPTO_RENAME_LICENSE
  18. mv $(@D)/LEGAL/copy/LICENSE.orig $(@D)/LEGAL/copy/LICENSE.original
  19. endef
  20. PYTHON_PYCRYPTO_POST_EXTRACT_HOOKS += PYTHON_PYCRYPTO_RENAME_LICENSE
  21. PYTHON_PYCRYPTO_LICENSE_FILES += LEGAL/copy/LICENSE.original
  22. PYTHON_PYCRYPTO_DEPENDENCIES = gmp
  23. # The configure step needs to be run outside of the setup.py since it isn't
  24. # run correctly for cross-compiling
  25. define PYTHON_PYCRYPTO_CONFIGURE_CMDS
  26. (cd $(@D) && \
  27. $(TARGET_CONFIGURE_OPTS) \
  28. $(TARGET_CONFIGURE_ARGS) \
  29. ./configure \
  30. --target=$(GNU_TARGET_NAME) \
  31. --host=$(GNU_TARGET_NAME) \
  32. --build=$(GNU_HOST_NAME) \
  33. --prefix=/usr \
  34. --exec-prefix=/usr \
  35. --sysconfdir=/etc \
  36. --program-prefix="" \
  37. )
  38. endef
  39. $(eval $(python-package))