blob: d1cc721adaae27f40bf1927ef3224611894ab44b [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001DESCRIPTION = "libftdi is a library to talk to FTDI chips.\
2FT232BM/245BM, FT2232C/D and FT232/245R using libusb,\
3including the popular bitbang mode."
4HOMEPAGE = "http://www.intra2net.com/en/developer/libftdi/"
5SECTION = "libs"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006LICENSE = "LGPLv2.1 & GPLv2"
7LIC_FILES_CHKSUM= "\
8 file://COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe \
9 file://COPYING.LIB;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
10"
11
Andrew Geissler4b7c1152020-11-30 19:55:29 -060012DEPENDS = "libusb1 python3 swig-native"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013
14SRC_URI = "http://www.intra2net.com/en/developer/${BPN}/download/${BPN}1-${PV}.tar.bz2"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015SRC_URI[md5sum] = "0c09fb2bb19a57c839fa6845c6c780a2"
16SRC_URI[sha256sum] = "ec36fb49080f834690c24008328a5ef42d3cf584ef4060f3a35aa4681cb31b74"
17
18S = "${WORKDIR}/${BPN}1-${PV}"
19
Brad Bishop2d39a062019-10-28 08:33:36 -040020inherit cmake binconfig pkgconfig python3native
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080021
Brad Bishopd7bf8c12018-02-25 22:55:05 -050022PACKAGECONFIG ??= ""
23PACKAGECONFIG[cpp-wrapper] = "-DFTDI_BUILD_CPP=on -DFTDIPP=on,-DFTDI_BUILD_CPP=off -DFTDIPP=off,boost"
24
Brad Bishop2d39a062019-10-28 08:33:36 -040025EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
26 -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so \
27 -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050028
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029BBCLASSEXTEND = "native nativesdk"
Brad Bishop2d39a062019-10-28 08:33:36 -040030
31PACKAGES += "${PN}-python"
32
Patrick Williams213cb262021-08-07 19:21:33 -050033FILES:${PN}-python = "${libdir}/${PYTHON_DIR}/site-packages/"