blob: f83d9c922572f235e33737bb3e63310d9ad5bbd9 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "Library for interfacing with IIO devices"
2HOMEPAGE = "https://wiki.analog.com/resources/tools-software/linux-software/libiio"
3SECTION = "libs"
4LICENSE = "LGPLv2.1+"
5LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"
6
Andrew Geissler82c905d2020-04-13 13:39:40 -05007SRCREV = "5f5af2e417129ad8f4e05fc5c1b730f0694dca12"
8PV = "0.19+git${SRCPV}"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009
Brad Bishop316dfdd2018-06-25 12:45:53 -040010SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https"
Andrew Geissler82c905d2020-04-13 13:39:40 -050011UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012
13S = "${WORKDIR}/git"
14
Brad Bishop868407c2019-11-04 13:24:47 -050015inherit cmake python3native systemd
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016
Brad Bishop316dfdd2018-06-25 12:45:53 -040017DEPENDS = " \
18 flex-native bison-native libaio \
19 ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
20"
21
22EXTRA_OECMAKE = " \
23 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
24 -DUDEV_RULES_INSTALL_DIR=${nonarch_base_libdir}/udev/rules.d \
25 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
26"
27
Brad Bishop868407c2019-11-04 13:24:47 -050028PACKAGECONFIG ??= "usb_backend network_backend"
Brad Bishop316dfdd2018-06-25 12:45:53 -040029
Brad Bishop868407c2019-11-04 13:24:47 -050030PACKAGECONFIG[usb_backend] = "-DWITH_USB_BACKEND=ON,-DWITH_USB_BACKEND=OFF,libusb1,libxml2"
31PACKAGECONFIG[network_backend] = "-DWITH_NETWORK_BACKEND=ON,-DWITH_NETWORK_BACKEND=OFF,libxml2"
32PACKAGECONFIG[libiio-python3] = "-DPYTHON_BINDINGS=ON,-DPYTHON_BINDINGS=OFF"
33
34inherit ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'distutils3-base', '', d)}
Brad Bishop6e60e8b2018-02-01 10:27:11 -050035
Brad Bishop6a62e0e2019-10-21 08:11:42 -040036PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-${PYTHON_PN}"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050037
Brad Bishop6a62e0e2019-10-21 08:11:42 -040038RDEPENDS_${PN}-${PYTHON_PN} = "${PN} ${PYTHON_PN}-ctypes ${PYTHON_PN}-stringold"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050039
Brad Bishop316dfdd2018-06-25 12:45:53 -040040FILES_${PN}-iiod = " \
41 ${sbindir}/iiod \
42 ${systemd_system_unitdir}/iiod.service \
43"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050044FILES_${PN}-tests = "${bindir}"
Brad Bishop6a62e0e2019-10-21 08:11:42 -040045FILES_${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}"
Brad Bishop316dfdd2018-06-25 12:45:53 -040046
47SYSTEMD_PACKAGES = "${PN}-iiod"
48SYSTEMD_SERVICE_${PN}-iiod = "iiod.service"