aboutsummaryrefslogtreecommitdiff
path: root/package/python-m2crypto/python-m2crypto.mk
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-11 21:26:42 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2013-12-15 13:37:06 +0100
commitdcd90b00ed7c37b1380a2e12a3f9761c75f19a9f (patch)
treed9bfe3c3e02a68a84cbbcfb69b3fbf7749c64ea9 /package/python-m2crypto/python-m2crypto.mk
parent1825edece08e4bc5e5e7c52268ff39cb7cdc174c (diff)
downloadbuildroot-dcd90b00ed7c37b1380a2e12a3f9761c75f19a9f.tar.gz
buildroot-dcd90b00ed7c37b1380a2e12a3f9761c75f19a9f.tar.bz2
python-m2crypto: convert to the Python package infrastructure
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/python-m2crypto/python-m2crypto.mk')
-rw-r--r--package/python-m2crypto/python-m2crypto.mk20
1 files changed, 8 insertions, 12 deletions
diff --git a/package/python-m2crypto/python-m2crypto.mk b/package/python-m2crypto/python-m2crypto.mk
index 1c0efbdbb4..dd0f77e8c7 100644
--- a/package/python-m2crypto/python-m2crypto.mk
+++ b/package/python-m2crypto/python-m2crypto.mk
@@ -7,20 +7,16 @@
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
+PYTHON_M2CRYPTO_SETUP_TYPE = setuptools
+HOST_PYTHON_M2CRYPTO_DEPENDENCIES = host-openssl host-swig
+# We need to override the build commands to be able to use build_ext,
+# which accepts the --openssl option.
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)
+ $(HOST_PKG_PYTHON_SETUPTOOLS_ENV) \
+ $(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))
+$(eval $(host-python-package))