@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := libiio
PKG_VERSION := 0.14
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/analogdevicesinc/libiio/tar.gz/v$( PKG_VERSION) ?
@ -25,16 +25,61 @@ PKG_INSTALL:=1
CMAKE_INSTALL := 1
PKG_CONFIG_DEPENDS := \
CONFIG_IPV6 \
CONFIG_LIBIIO_LOCAL_BACKEND \
CONFIG_LIBIIO_NETWORK_BACKEND \
CONFIG_LIBIIO_USB_BACKEND \
CONFIG_LIBIIO_XML_BACKEND
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
CMAKE_OPTIONS += -DWITH_DOC= OFF
CMAKE_OPTIONS += -DENABLE_IPV6= $( if $( CONFIG_IPV6) ,ON,OFF)
CMAKE_OPTIONS += -DENABLE_AIO= OFF
CMAKE_OPTIONS += -DWITH_LOCAL_BACKEND= $( if $( CONFIG_LIBIIO_LOCAL_BACKEND) ,ON,OFF)
CMAKE_OPTIONS += -DWITH_LOCAL_CONFIG= OFF
CMAKE_OPTIONS += -DWITH_NETWORK_BACKEND= $( if $( CONFIG_LIBIIO_NETWORK_BACKEND) ,ON,OFF)
# serial backend requires libserial which is not packaged yet
CMAKE_OPTIONS += -DWITH_SERIAL_BACKEND= OFF
CMAKE_OPTIONS += -DWITH_USB_BACKEND= $( if $( CONFIG_LIBIIO_USB_BACKEND) ,ON,OFF)
CMAKE_OPTIONS += -DWITH_XML_BACKEND= $( if $( CONFIG_LIBIIO_XML_BACKEND) ,ON,OFF)
d e f i n e P a c k a g e / l i b i i o
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Library for interfacing with Linux IIO devices
URL:= https://github.com/analogdevicesinc/libiio
DEPENDS:= +PACKAGE_libaio:libaio +PACKAGE_libusb-1.0:libusb-1.0 \
+PACKAGE_libavahi-client:libavahi-client +libxml2
DEPENDS:= \
+LIBIIO_USB_BACKEND:libusb-1.0 \
+LIBIIO_NETWORK_BACKEND:libavahi-client \
+LIBIIO_XML_BACKEND:libxml2
MENU:= 1
e n d e f
d e f i n e P a c k a g e / l i b i i o / c o n f i g
c o n f i g L I B I I O _ L O C A L _ B A C K E N D
bool "Enable local backend"
depends on PACKAGE_libiio
default y
c o n f i g L I B I I O _ N E T W O R K _ B A C K E N D
bool "Enable network backend"
depends on PACKAGE_libiio
select LIBIIO_XML_BACKEND
default n
c o n f i g L I B I I O _ U S B _ B A C K E N D
bool "Enable USB backend"
depends on PACKAGE_libiio
select LIBIIO_XML_BACKEND
default n
c o n f i g L I B I I O _ X M L _ B A C K E N D
bool "Enable XML backend"
depends on PACKAGE_libiio
default n
e n d e f
d e f i n e P a c k a g e / l i b i i o / d e s c r i p t i o n