blob: ea944b32ff84fd51a5bdc1fbd42e96f60dee6761 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "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
7inherit python-dir
8
9DEPENDS = "python"
10
11SRC_URI = "${SOURCEFORGE_MIRROR}/project/pyqt/sip/sip-${PV}/sip-${PV}.tar.gz"
12SRC_URI[md5sum] = "0625fb20347d4ff1b5da551539be0727"
13SRC_URI[sha256sum] = "7eaf7a2ea7d4d38a56dd6d2506574464bddf7cf284c960801679942377c297bc"
14
15BBCLASSEXTEND = "native"
16
17PACKAGES += "python-sip"
18
19do_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}
28do_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}
37do_install() {
38 oe_runmake install
39}
40
41FILES_python-sip = "${libdir}/${PYTHON_DIR}/site-packages/"
42FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug"