blob: 092531b3223d9ed00b90c3fb1a8220a5110e0c9e [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "SIP is a C++/Python Wrapper Generator"
2HOMEPAGE = "http://www.riverbankcomputing.co.uk/sip"
3SECTION = "devel"
4LICENSE = "GPLv2+"
5LIC_FILES_CHKSUM = "file://LICENSE-GPL2;md5=e91355d8a6f8bd8f7c699d62863c7303"
6
Brad Bishopc342db32019-05-15 21:57:59 -04007SRC_URI = "https://www.riverbankcomputing.com/static/Downloads/sip/${PV}/sip-${PV}.tar.gz \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08008 "
Brad Bishopc342db32019-05-15 21:57:59 -04009SRC_URI[md5sum] = "7e854b0da395ddc8fb5da82d0321994d"
10SRC_URI[sha256sum] = "184c790d58e9527fc6bdac2bbf8638f3d1b41dea922cad8eb83172b4ba70c620"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011
12S = "${WORKDIR}/sip-${PV}"
13
14BBCLASSEXTEND = "native"
15
16do_configure_prepend_class-target() {
17 echo "py_platform = linux" > sip.cfg
Brad Bishopc342db32019-05-15 21:57:59 -040018 echo "py_inc_dir = %(sysroot)/${includedir}/python%(py_major).%(py_minor)${PYTHON_ABI}" >> sip.cfg
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080019 echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg
20 echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg
Brad Bishopc342db32019-05-15 21:57:59 -040021 echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022 echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg
23 ${PYTHON} configure.py --configuration sip.cfg --sip-module PyQt5.sip --sysroot ${STAGING_DIR_HOST} CC="${CC}" CXX="${CXX}" LINK="${CXX}" STRIP="" LINK_SHLIB="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LFLAGS="${LDFLAGS}"
24}
25do_configure_prepend_class-native() {
26 echo "py_platform = linux" > sip.cfg
Brad Bishopc342db32019-05-15 21:57:59 -040027 echo "py_inc_dir = ${includedir}/python%(py_major).%(py_minor)${PYTHON_ABI}" >> sip.cfg
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080028 echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg
29 echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg
Brad Bishopc342db32019-05-15 21:57:59 -040030 echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080031 echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg
32 ${PYTHON} configure.py --configuration sip.cfg --sip-module PyQt5.sip --sysroot=${STAGING_DIR_NATIVE}
33}
34do_install() {
35 oe_runmake install
36}