mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 23:48:20 +00:00
The commits have been merged upstream, but there hasn't been a release containing them yet (last upstream release was years ago). Pulling them in unblocks builds with CMake 4+ in the context of a patch series bumping CMake to 4.0.3 in openembedded-core (see [0]). [0]: https://lists.openembedded.org/g/openembedded-core/topic/113946576 CC: antonin.godard@bootlin.com CC: alex.kanavin@gmail.com Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
49 lines
1.9 KiB
BlitzBasic
49 lines
1.9 KiB
BlitzBasic
DESCRIPTION = "libftdi is a library to talk to FTDI chips.\
|
|
FT232BM/245BM, FT2232C/D and FT232/245R using libusb,\
|
|
including the popular bitbang mode."
|
|
HOMEPAGE = "http://www.intra2net.com/en/developer/libftdi/"
|
|
SECTION = "libs"
|
|
LICENSE = "LGPL-2.1-only & GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "\
|
|
file://COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe \
|
|
file://COPYING.LIB;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
|
|
"
|
|
|
|
DEPENDS = "libusb1 python3 swig-native"
|
|
|
|
SRC_URI = "\
|
|
http://www.intra2net.com/en/developer/${BPN}/download/${BPN}1-${PV}.tar.bz2 \
|
|
file://CMakeLists-txt-fix-paths-when-FTDIPP-is-set.patch \
|
|
file://0001-CMake-bump-the-minimal-required-version-to-2.8.12.patch \
|
|
file://0002-CMake-require-2.8.12-for-cmake_example.patch \
|
|
file://0003-CMake-bump-the-minimal-required-version-to-3.5.patch \
|
|
"
|
|
SRC_URI[sha256sum] = "7c7091e9c86196148bd41177b4590dccb1510bfe6cea5bf7407ff194482eb049"
|
|
|
|
UPSTREAM_CHECK_URI = "http://www.intra2net.com/en/developer/libftdi/download.php"
|
|
|
|
S = "${UNPACKDIR}/${BPN}1-${PV}"
|
|
|
|
inherit cmake binconfig pkgconfig python3native
|
|
|
|
PACKAGECONFIG ??= ""
|
|
PACKAGECONFIG[cpp-wrapper] = "-DFTDI_BUILD_CPP=on -DFTDIPP=on,-DFTDI_BUILD_CPP=off -DFTDIPP=off,boost"
|
|
PACKAGECONFIG[ftdi-eeprom] = "-DFTDI_EEPROM=on,-DFTDI_EEPROM=off,libconfuse"
|
|
|
|
EXTRA_OECMAKE = "-DSTATICLIBS=off -DEXAMPLES=off \
|
|
-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
|
|
-DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so \
|
|
-DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
|
|
|
|
do_install:append() {
|
|
# remove absolute paths
|
|
sed -i -e 's|${RECIPE_SYSROOT}||g' ${D}${libdir}/cmake/libftdi1/LibFTDI1Config.cmake
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
PACKAGES =+ "${PN}-python ftdi-eeprom"
|
|
|
|
FILES:ftdi-eeprom = "${bindir}/ftdi_eeprom"
|
|
FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/"
|