diff options
Diffstat (limited to 'meta-oe/recipes-devtools/sip/sip_4.19.13.bb')
-rw-r--r-- | meta-oe/recipes-devtools/sip/sip_4.19.13.bb | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/meta-oe/recipes-devtools/sip/sip_4.19.13.bb b/meta-oe/recipes-devtools/sip/sip_4.19.13.bb index 09f15d421..3da15b842 100644 --- a/meta-oe/recipes-devtools/sip/sip_4.19.13.bb +++ b/meta-oe/recipes-devtools/sip/sip_4.19.13.bb | |||
@@ -1,43 +1,11 @@ | |||
1 | SUMMARY = "SIP is a C++/Python Wrapper Generator" | 1 | require sip.inc |
2 | HOMEPAGE = "http://www.riverbankcomputing.co.uk/sip" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE-GPL2;md5=e91355d8a6f8bd8f7c699d62863c7303" | ||
6 | 2 | ||
7 | DEPENDS = "python" | 3 | DEPENDS = "python" |
8 | 4 | ||
9 | inherit python-dir pythonnative | 5 | inherit python-dir pythonnative |
10 | 6 | ||
11 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/pyqt/sip/sip-${PV}/sip-${PV}.tar.gz \ | ||
12 | " | ||
13 | SRC_URI[md5sum] = "9124cb8978742685747a5415179a9890" | ||
14 | SRC_URI[sha256sum] = "e353a7056599bf5fbd5d3ff9842a6ab2ea3cf4e0304a0f925ec5862907c0d15e" | ||
15 | |||
16 | BBCLASSEXTEND = "native" | ||
17 | |||
18 | PACKAGES += "python-sip" | 7 | PACKAGES += "python-sip" |
19 | 8 | ||
20 | do_configure_prepend_class-target() { | ||
21 | echo "py_platform = linux" > sip.cfg | ||
22 | echo "py_inc_dir = %(sysroot)/${includedir}/python%(py_major).%(py_minor)" >> sip.cfg | ||
23 | echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg | ||
24 | echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg | ||
25 | echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg | ||
26 | echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg | ||
27 | 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}" | ||
28 | } | ||
29 | do_configure_prepend_class-native() { | ||
30 | echo "py_platform = linux" > sip.cfg | ||
31 | echo "py_inc_dir = ${includedir}/python%(py_major).%(py_minor)" >> sip.cfg | ||
32 | echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg | ||
33 | echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg | ||
34 | echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg | ||
35 | echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg | ||
36 | python configure.py --configuration sip.cfg --sip-module PyQt5.sip --sysroot=${STAGING_DIR_NATIVE} | ||
37 | } | ||
38 | do_install() { | ||
39 | oe_runmake install | ||
40 | } | ||
41 | |||
42 | FILES_python-sip = "${libdir}/${PYTHON_DIR}/site-packages/" | 9 | FILES_python-sip = "${libdir}/${PYTHON_DIR}/site-packages/" |
43 | FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug" | 10 | FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug" |
11 | |||