blob: d0795454eb9aa324d7cee9d488e42405b78f5faa [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
7SRC_URI = "${SOURCEFORGE_MIRROR}/project/pyqt/sip/sip-${PV}/sip-${PV}.tar.gz \
8 "
9SRC_URI[md5sum] = "9124cb8978742685747a5415179a9890"
10SRC_URI[sha256sum] = "e353a7056599bf5fbd5d3ff9842a6ab2ea3cf4e0304a0f925ec5862907c0d15e"
11
12S = "${WORKDIR}/sip-${PV}"
13
14BBCLASSEXTEND = "native"
15
16do_configure_prepend_class-target() {
17 echo "py_platform = linux" > sip.cfg
18 echo "py_inc_dir = %(sysroot)/${includedir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}" >> sip.cfg
19 echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg
20 echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg
21 echo "sip_module_dir = ${D}/${libdir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}/site-packages" >> sip.cfg
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}
25do_configure_prepend_class-native() {
26 echo "py_platform = linux" > sip.cfg
27 echo "py_inc_dir = ${includedir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}" >> sip.cfg
28 echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg
29 echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg
30 echo "sip_module_dir = ${D}/${libdir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}/site-packages" >> sip.cfg
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}
34do_install() {
35 oe_runmake install
36}