blob: cc0efccf9957a4321367c28df70b35e73b720007 [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
Brad Bishop19323692019-04-05 15:28:33 -04007SRCREV = "6ecff5d46e1b12c2859f0b63a73282940e3402bb"
8PV = "0.15+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"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011
12S = "${WORKDIR}/git"
13
Brad Bishop316dfdd2018-06-25 12:45:53 -040014inherit cmake pythonnative systemd
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015
Brad Bishop316dfdd2018-06-25 12:45:53 -040016DEPENDS = " \
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
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080027PACKAGECONFIG ??= "USB_BACKEND NETWORK_BACKEND PYTHON_BINDINGS"
Brad Bishop316dfdd2018-06-25 12:45:53 -040028
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"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080031PACKAGECONFIG[PYTHON_BINDINGS] = ",,python"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050032
33PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python"
34
35RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold"
36
Brad Bishop316dfdd2018-06-25 12:45:53 -040037FILES_${PN}-iiod = " \
38 ${sbindir}/iiod \
39 ${systemd_system_unitdir}/iiod.service \
40"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050041FILES_${PN}-tests = "${bindir}"
42FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
Brad Bishop316dfdd2018-06-25 12:45:53 -040043
44SYSTEMD_PACKAGES = "${PN}-iiod"
45SYSTEMD_SERVICE_${PN}-iiod = "iiod.service"