summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-04-29 08:57:48 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-06 13:44:35 +0200
commitb099bb199e5819c1b15b9a623a4e5d9d6423ada4 (patch)
tree4e6609e9f51f1b47313c6c3fff60e476261ecc86 /package
parent20d371fd12eb9c2cdcaa9b9c68873ac72d4ddbbc (diff)
downloadbuildroot-novena-b099bb199e5819c1b15b9a623a4e5d9d6423ada4.tar.gz
buildroot-novena-b099bb199e5819c1b15b9a623a4e5d9d6423ada4.zip
python-m2crypto: new package
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/python-m2crypto/python-m2crypto.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/python-m2crypto/python-m2crypto.mk b/package/python-m2crypto/python-m2crypto.mk
new file mode 100644
index 000000000..2429b2420
--- /dev/null
+++ b/package/python-m2crypto/python-m2crypto.mk
@@ -0,0 +1,26 @@
+#############################################################
+#
+# python-m2crypto
+#
+#############################################################
+
+PYTHON_M2CRYPTO_VERSION = 0.21.1
+PYTHON_M2CRYPTO_SITE = http://pypi.python.org/packages/source/M/M2Crypto
+PYTHON_M2CRYPTO_SOURCE = M2Crypto-$(PYTHON_M2CRYPTO_VERSION).tar.gz
+HOST_PYTHON_M2CRYPTO_DEPENDENCIES = host-openssl host-python host-python-setuptools host-swig
+
+define HOST_PYTHON_M2CRYPTO_BUILD_CMDS
+ (cd $(@D); \
+ $(HOST_CONFIGURE_OPTS) \
+ PYTHONXCPREFIX="$(HOST_DIR)/usr/" \
+ LDFLAGS="-L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib" \
+ $(HOST_DIR)/usr/bin/python setup.py build_ext --openssl=$(HOST_DIR)/usr)
+endef
+
+define HOST_PYTHON_M2CRYPTO_INSTALL_CMDS
+ (cd $(@D); \
+ PYTHONPATH=$(HOST_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \
+ $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(HOST_DIR)/usr)
+endef
+
+$(eval $(host-generic-package))