Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [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 | |
| 7 | inherit python-dir |
| 8 | |
| 9 | DEPENDS = "python" |
| 10 | |
| 11 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/pyqt/sip/sip-${PV}/sip-${PV}.tar.gz" |
| 12 | SRC_URI[md5sum] = "0625fb20347d4ff1b5da551539be0727" |
| 13 | SRC_URI[sha256sum] = "7eaf7a2ea7d4d38a56dd6d2506574464bddf7cf284c960801679942377c297bc" |
| 14 | |
| 15 | BBCLASSEXTEND = "native" |
| 16 | |
| 17 | PACKAGES += "python-sip" |
| 18 | |
| 19 | do_configure_prepend_class-target() { |
| 20 | echo "py_platform = linux" > sip.cfg |
| 21 | echo "py_inc_dir = %(sysroot)/${includedir}/python%(py_major).%(py_minor)" >> sip.cfg |
| 22 | echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg |
| 23 | echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg |
| 24 | echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg |
| 25 | echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg |
| 26 | python configure.py --configuration sip.cfg --sysroot ${STAGING_DIR_HOST} CC="${CC}" CXX="${CXX}" LINK="${CXX}" STRIP="" LINK_SHLIB="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LFLAGS="${LDFLAGS}" |
| 27 | } |
| 28 | do_configure_prepend_class-native() { |
| 29 | echo "py_platform = linux" > sip.cfg |
| 30 | echo "py_inc_dir = ${includedir}/python%(py_major).%(py_minor)" >> sip.cfg |
| 31 | echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg |
| 32 | echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg |
| 33 | echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg |
| 34 | echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg |
| 35 | python configure.py --configuration sip.cfg --sysroot ${STAGING_DIR_NATIVE} |
| 36 | } |
| 37 | do_install() { |
| 38 | oe_runmake install |
| 39 | } |
| 40 | |
| 41 | FILES_python-sip = "${libdir}/${PYTHON_DIR}/site-packages/" |
| 42 | FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug" |