net/quagga-unstable: fix compile issue on FreeBSD 8.1
[openwrt/svn-archive/archive.git] / lang / python-crypto / Makefile
1 #
2 # Copyright (C) 2009-2010 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.0.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.amk.ca/files/python/crypto/
16 PKG_MD5SUM:=4d5674f3898a573691ffb335e8d749cd
17
18 include $(INCLUDE_DIR)/package.mk
19 $(call include_mk, python-package.mk)
20
21 define Package/python-crypto
22 SECTION:=lang-python
23 CATEGORY:=Languages
24 SUBMENU:=Python
25 TITLE:=python-crypto
26 URL:=http://www.pycrypto.org/
27 DEPENDS:=+python +libgmp
28 endef
29
30 define Package/python-crypto/description
31 A collection of both secure hash functions (such as MD5 and SHA),
32 and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal, etc.).
33 endef
34
35 define Build/Compile
36 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
37 endef
38
39 define Package/python-crypto/install
40 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/
41 $(CP) \
42 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
43 $(1)$(PYTHON_PKG_DIR)/
44 endef
45
46 $(eval $(call BuildPackage,python-crypto))