summaryrefslogtreecommitdiffstats
path: root/package/python-m2crypto/python-m2crypto.mk
blob: dd0f77e8c7b8c782124c378595675e7aacab59a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
################################################################################
#
# 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
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_PKG_PYTHON_SETUPTOOLS_ENV) \
		$(HOST_DIR)/usr/bin/python setup.py build_ext \
			--openssl=$(HOST_DIR)/usr)
endef

$(eval $(host-python-package))