1 ################################################################################
5 ################################################################################
7 PYTHON_PYCRYPTO_VERSION
= 2.6.1
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 HOST_PYTHON_PYCRYPTO_POST_EXTRACT_HOOKS
+= PYTHON_PYCRYPTO_RENAME_LICENSE
26 PYTHON_PYCRYPTO_LICENSE_FILES
+= LEGAL
/copy
/LICENSE.original
28 PYTHON_PYCRYPTO_DEPENDENCIES
= gmp
29 HOST_PYTHON_PYCRYPTO_DEPENDENCIES
= host-gmp
31 # The configure step needs to be run outside of the setup.py since it isn't
32 # run correctly for cross-compiling
33 define PYTHON_PYCRYPTO_CONFIGURE_CMDS
35 $(TARGET_CONFIGURE_OPTS
) \
36 $(TARGET_CONFIGURE_ARGS
) \
38 --target
=$(GNU_TARGET_NAME
) \
39 --host
=$(GNU_TARGET_NAME
) \
40 --build
=$(GNU_HOST_NAME
) \
48 $(eval
$(python-package
))
49 $(eval
$(host-python-package
))