Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "SIP is a C++/Python Wrapper Generator" |
| 2 | HOMEPAGE = "http://www.riverbankcomputing.co.uk/sip" |
| 3 | SECTION = "devel" |
| 4 | LICENSE = "GPLv2+" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE-GPL2;md5=e91355d8a6f8bd8f7c699d62863c7303" |
| 6 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 7 | SRC_URI = "https://www.riverbankcomputing.com/static/Downloads/sip/${PV}/sip-${PV}.tar.gz \ |
Brad Bishop | 87b3cb8 | 2019-11-15 16:35:37 -0500 | [diff] [blame] | 8 | " |
| 9 | SRC_URI[md5sum] = "98111479309dc472410f26080d6d4a88" |
| 10 | SRC_URI[sha256sum] = "5436b61a78f48c7e8078e93a6b59453ad33780f80c644e5f3af39f94be1ede44" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | |
| 12 | S = "${WORKDIR}/sip-${PV}" |
| 13 | |
| 14 | BBCLASSEXTEND = "native" |
| 15 | |
| 16 | do_configure_prepend_class-target() { |
| 17 | echo "py_platform = linux" > sip.cfg |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 18 | echo "py_inc_dir = %(sysroot)/${includedir}/python%(py_major).%(py_minor)${PYTHON_ABI}" >> sip.cfg |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 19 | echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg |
| 20 | echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 21 | echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 22 | 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 | } |
| 25 | do_configure_prepend_class-native() { |
| 26 | echo "py_platform = linux" > sip.cfg |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 27 | echo "py_inc_dir = ${includedir}/python%(py_major).%(py_minor)${PYTHON_ABI}" >> sip.cfg |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 28 | echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg |
| 29 | echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 30 | echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 31 | 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 | } |
| 34 | do_install() { |
| 35 | oe_runmake install |
| 36 | } |