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