Makefile (1338B)
1 # 2 # Copyright (C) 2009-2015 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=pycrypto 11 PKG_VERSION:=2.6.1 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:=https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/ 16 PKG_MD5SUM:=55a61a054aa66812daf5161a0d5d7eda 17 18 PKG_LICENSE:=Public Domain 19 PKG_LICENSE_FILES:=COPYRIGHT 20 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> 21 22 include $(INCLUDE_DIR)/package.mk 23 $(call include_mk, python-package.mk) 24 25 define Package/python-crypto 26 SECTION:=lang-python 27 CATEGORY:=Languages 28 SUBMENU:=Python 29 TITLE:=python-crypto 30 URL:=http://www.pycrypto.org/ 31 DEPENDS:=+python +libgmp 32 endef 33 34 define Package/python-crypto/description 35 A collection of both secure hash functions (such as MD5 and SHA), 36 and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal, etc.). 37 endef 38 39 define Build/Compile 40 $(call Build/Compile/PyMod,,\ 41 install --prefix=/usr --root=$(PKG_INSTALL_DIR),\ 42 CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)" \ 43 ) 44 endef 45 46 define Package/python-crypto/install 47 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/ 48 $(CP) \ 49 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ 50 $(1)$(PYTHON_PKG_DIR)/ 51 endef 52 53 $(eval $(call PyPackage,python-crypto)) 54 $(eval $(call BuildPackage,python-crypto))