blob: e6e0eaef8bb542ad5f1310c78cd1b4669724e54e [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 Bishop6a62e0e2019-10-21 08:11:42 -04007# v0.18 + a single commit fixing the build
8SRCREV = "5090603d01779bb1717fb0c50953330e8770550f"
9PV = "0.18+git${SRCPV}"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010
Brad Bishop316dfdd2018-06-25 12:45:53 -040011SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012
13S = "${WORKDIR}/git"
14
Brad Bishop2d39a062019-10-28 08:33:36 -040015inherit cmake python3native systemd distutils3-base
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 Bishop6a62e0e2019-10-21 08:11:42 -040028PACKAGECONFIG ??= "USB_BACKEND NETWORK_BACKEND"
Brad Bishop316dfdd2018-06-25 12:45:53 -040029
30PACKAGECONFIG[USB_BACKEND] = "-DWITH_USB_BACKEND=ON,-DWITH_USB_BACKEND=OFF,libusb1,libxml2"
31PACKAGECONFIG[NETWORK_BACKEND] = "-DWITH_NETWORK_BACKEND=ON,-DWITH_NETWORK_BACKEND=OFF,libxml2"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050032
Brad Bishop6a62e0e2019-10-21 08:11:42 -040033PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-${PYTHON_PN}"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050034
Brad Bishop6a62e0e2019-10-21 08:11:42 -040035RDEPENDS_${PN}-${PYTHON_PN} = "${PN} ${PYTHON_PN}-ctypes ${PYTHON_PN}-stringold"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050036
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}"
Brad Bishop6a62e0e2019-10-21 08:11:42 -040042FILES_${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}"
Brad Bishop316dfdd2018-06-25 12:45:53 -040043
44SYSTEMD_PACKAGES = "${PN}-iiod"
45SYSTEMD_SERVICE_${PN}-iiod = "iiod.service"