blob: e1f92928c6dfddf99edf2ac8e547dc5ebc8d55bd [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "A Python crypto and SSL toolkit"
2HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e"
6
7FILESEXTRAPATHS_prepend := "${THISDIR}/python-m2crypto:"
8
9SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch \
10 file://cross-compile-platform.patch \
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050011 file://0001-Allow-verify_cb_-to-be-called-with-ok-True.patch \
12 file://0001-Use-of-RSA_SSLV23_PADDING-has-been-deprecated.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013 "
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050014SRC_URI[sha256sum] = "e4e42f068b78ccbf113e5d0a72ae5f480f6c3ace4940b91e4fff5598cfff6fb3"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015
16PYPI_PACKAGE = "M2Crypto"
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050017inherit pypi siteinfo setuptools3
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018
19DEPENDS += "openssl swig-native"
Andrew Geissler89770b02020-06-13 10:40:47 -050020RDEPENDS_${PN} += "\
21 ${PYTHON_PN}-datetime \
22 ${PYTHON_PN}-distutils \
23 ${PYTHON_PN}-logging \
24 ${PYTHON_PN}-netclient \
25 ${PYTHON_PN}-netserver \
26 ${PYTHON_PN}-numbers \
27 ${PYTHON_PN}-smtpd \
Andrew Geissler89770b02020-06-13 10:40:47 -050028 ${PYTHON_PN}-xmlrpc \
29"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080030
31DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}"
32DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}"
33
34SWIG_FEATURES_x86 = "-D__i386__"
35SWIG_FEATURES_x32 = "-D__ILP32__"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070036
37SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']}"
38
39SWIG_FEATURES_append_riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}"
40SWIG_FEATURES_append_riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}"
41SWIG_FEATURES_append_mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080042export SWIG_FEATURES
43
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080044BBCLASSEXTEND = "native"