Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | SUMMARY = "Library for interfacing with IIO devices" |
| 2 | HOMEPAGE = "https://wiki.analog.com/resources/tools-software/linux-software/libiio" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPLv2.1+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c" |
| 6 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 7 | SRCREV = "6ecff5d46e1b12c2859f0b63a73282940e3402bb" |
| 8 | PV = "0.15+git${SRCPV}" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 10 | SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | inherit cmake pythonnative systemd |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | DEPENDS = " \ |
| 17 | flex-native bison-native libaio \ |
| 18 | ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ |
| 19 | " |
| 20 | |
| 21 | EXTRA_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 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 27 | PACKAGECONFIG ??= "USB_BACKEND NETWORK_BACKEND PYTHON_BINDINGS" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 28 | |
| 29 | PACKAGECONFIG[USB_BACKEND] = "-DWITH_USB_BACKEND=ON,-DWITH_USB_BACKEND=OFF,libusb1,libxml2" |
| 30 | PACKAGECONFIG[NETWORK_BACKEND] = "-DWITH_NETWORK_BACKEND=ON,-DWITH_NETWORK_BACKEND=OFF,libxml2" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 31 | PACKAGECONFIG[PYTHON_BINDINGS] = ",,python" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 32 | |
| 33 | PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python" |
| 34 | |
| 35 | RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold" |
| 36 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 37 | FILES_${PN}-iiod = " \ |
| 38 | ${sbindir}/iiod \ |
| 39 | ${systemd_system_unitdir}/iiod.service \ |
| 40 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 41 | FILES_${PN}-tests = "${bindir}" |
| 42 | FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 43 | |
| 44 | SYSTEMD_PACKAGES = "${PN}-iiod" |
| 45 | SYSTEMD_SERVICE_${PN}-iiod = "iiod.service" |