The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / python-pycrypto / python-pycrypto.mk
1 ################################################################################
2 #
3 # python-pycrypto
4 #
5 ################################################################################
6
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
11
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
16
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
20 # infrastructure
21 define PYTHON_PYCRYPTO_RENAME_LICENSE
22         mv $(@D)/LEGAL/copy/LICENSE.orig $(@D)/LEGAL/copy/LICENSE.original
23 endef
24 PYTHON_PYCRYPTO_POST_EXTRACT_HOOKS += PYTHON_PYCRYPTO_RENAME_LICENSE
25 PYTHON_PYCRYPTO_LICENSE_FILES += LEGAL/copy/LICENSE.original
26
27 PYTHON_PYCRYPTO_DEPENDENCIES = gmp
28
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
32         (cd $(@D) && \
33         $(TARGET_CONFIGURE_OPTS) \
34         $(TARGET_CONFIGURE_ARGS) \
35         ./configure \
36                 --target=$(GNU_TARGET_NAME) \
37                 --host=$(GNU_TARGET_NAME) \
38                 --build=$(GNU_HOST_NAME) \
39                 --prefix=/usr \
40                 --exec-prefix=/usr \
41                 --sysconfdir=/etc \
42                 --program-prefix="" \
43         )
44 endef
45
46 $(eval $(python-package))