imagemagick: bump version to 7.0.3-7 (security)
[buildroot-gz.git] / package / python-pycrypto / python-pycrypto.mk
blob927ba918ae1964645c80a86f17526d5e4ddc5799
1 ################################################################################
3 # python-pycrypto
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
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 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
34 (cd $(@D) && \
35 $(TARGET_CONFIGURE_OPTS) \
36 $(TARGET_CONFIGURE_ARGS) \
37 ./configure \
38 --target=$(GNU_TARGET_NAME) \
39 --host=$(GNU_TARGET_NAME) \
40 --build=$(GNU_HOST_NAME) \
41 --prefix=/usr \
42 --exec-prefix=/usr \
43 --sysconfdir=/etc \
44 --program-prefix="" \
46 endef
48 $(eval $(python-package))
49 $(eval $(host-python-package))