blob: fa6f4c2ca51a00f5fa2ad68edf761e0748ee4b96 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001SUMMARY = "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
7SRCREV = "fa82974d8bd1fded78e630ab71a7ded1b11d0e33"
8PV = "0.14+git${SRCPV}"
9
10SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https"
11
12S = "${WORKDIR}/git"
13
14inherit cmake pythonnative systemd
15
16DEPENDS = " \
17 flex-native bison-native libaio \
18 ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
19"
20
21EXTRA_OECMAKE = " \
22 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
23 -DUDEV_RULES_INSTALL_DIR=${nonarch_base_libdir}/udev/rules.d \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
25"
26
27PACKAGECONFIG ??= "USB_BACKEND NETWORK_BACKEND PYTHON_BINDINGS"
28
29PACKAGECONFIG[USB_BACKEND] = "-DWITH_USB_BACKEND=ON,-DWITH_USB_BACKEND=OFF,libusb1,libxml2"
30PACKAGECONFIG[NETWORK_BACKEND] = "-DWITH_NETWORK_BACKEND=ON,-DWITH_NETWORK_BACKEND=OFF,libxml2"
31PACKAGECONFIG[PYTHON_BINDINGS] = ",,python"
32
33PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python"
34
35RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold"
36
37FILES_${PN}-iiod = " \
38 ${sbindir}/iiod \
39 ${systemd_system_unitdir}/iiod.service \
40"
41FILES_${PN}-tests = "${bindir}"
42FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
43
44SYSTEMD_PACKAGES = "${PN}-iiod"
45SYSTEMD_SERVICE_${PN}-iiod = "iiod.service"