python-pycrypto: new package
Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
fe6e7a4f13
commit
f096d82eb2
35
package/python-pycrypto/python-pycrypto.mk
Normal file
35
package/python-pycrypto/python-pycrypto.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-pycrypto
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_PYCRYPTO_VERSION = 2.6
|
||||
PYTHON_PYCRYPTO_SOURCE = pycrypto-$(PYTHON_PYCRYPTO_VERSION).tar.gz
|
||||
PYTHON_PYCRYPTO_SITE = http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto
|
||||
PYTHON_PYCRYPTO_SETUP_TYPE = distutils
|
||||
|
||||
PYTHON_PYCRYPTO_LICENSE = Public Domain, Python 2.2 License (HMAC.py, setup.py)
|
||||
PYTHON_PYCRYPTO_LICENSE_FILES = COPYRIGHT LEGAL/copy/LICENSE.libtom \
|
||||
LEGAL/copy/LICENSE.orig LEGAL/copy/LICENSE.python-2.2
|
||||
|
||||
PYTHON_PYCRYPTO_DEPENDENCIES = gmp
|
||||
|
||||
# The configure step needs to be run outside of the setup.py since it isn't
|
||||
# run correctly for cross-compiling
|
||||
define PYTHON_PYCRYPTO_CONFIGURE_CMDS
|
||||
(cd $(@D) && \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
./configure \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--program-prefix="" \
|
||||
)
|
||||
endef
|
||||
|
||||
$(eval $(python-package))
|
||||
Reference in New Issue
Block a user