aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2019-02-10 03:54:43 +0800
committeryuri <yuri@FreeBSD.org>2019-02-10 03:54:43 +0800
commit86a3ab96db064a16218fb5d0ca02bf72c36a9924 (patch)
tree2b38ee45c21224faad5790bd0aeaac2bc9d231be /misc
parent9d80b3761e55d510a88391047aa2f7d4b088ce90 (diff)
downloadfreebsd-ports-gnome-86a3ab96db064a16218fb5d0ca02bf72c36a9924.tar.gz
freebsd-ports-gnome-86a3ab96db064a16218fb5d0ca02bf72c36a9924.tar.zst
freebsd-ports-gnome-86a3ab96db064a16218fb5d0ca02bf72c36a9924.zip
New port: misc/libiio: Library for interfacing with local and remote IIO devices
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile1
-rw-r--r--misc/libiio/Makefile26
-rw-r--r--misc/libiio/distinfo3
-rw-r--r--misc/libiio/files/patch-CMakeLists.txt11
-rw-r--r--misc/libiio/pkg-descr12
-rw-r--r--misc/libiio/pkg-plist12
6 files changed, 65 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 814ae62de7cd..34736998f88c 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -216,6 +216,7 @@
SUBDIR += lesspipe
SUBDIR += libeatmydata
SUBDIR += libemos
+ SUBDIR += libiio
SUBDIR += libisocodes
SUBDIR += libkeduvocdocument
SUBDIR += liblxi
diff --git a/misc/libiio/Makefile b/misc/libiio/Makefile
new file mode 100644
index 000000000000..1767d64a638d
--- /dev/null
+++ b/misc/libiio/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME= libiio
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.17
+CATEGORIES= misc
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Library for interfacing with local and remote IIO devices
+
+LICENSE= BSL
+LICENSE_FILE= ${WRKSRC}/COPYING.txt
+
+LIB_DEPENDS= libavahi-client.so:net/avahi-app
+
+USES= cmake gnome
+USE_GITHUB= yes
+GH_ACCOUNT= analogdevicesinc
+USE_GNOME= libxml2
+USE_LDCONFIG= yes
+
+OPTIONS_DEFINE= DOCS
+
+PORTDOCS= *
+
+.include <bsd.port.mk>
diff --git a/misc/libiio/distinfo b/misc/libiio/distinfo
new file mode 100644
index 000000000000..07cd6fb0ddc7
--- /dev/null
+++ b/misc/libiio/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1549741571
+SHA256 (analogdevicesinc-libiio-v0.17_GH0.tar.gz) = f591693b8759b6f159ab7afcc1325854a883a486adaf8a849acbdfe0def9db56
+SIZE (analogdevicesinc-libiio-v0.17_GH0.tar.gz) = 199593
diff --git a/misc/libiio/files/patch-CMakeLists.txt b/misc/libiio/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..b4b13494de0d
--- /dev/null
+++ b/misc/libiio/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2019-02-09 19:52:30 UTC
++++ CMakeLists.txt
+@@ -310,7 +310,7 @@ endif()
+ #set(SETUP_PY ${CMAKE_CURRENT_SOURCE_DIR}/bindings/python/setup.py)
+ #configure_file(python/setup.py.in ${SETUP_PY} @ONLY)
+
+-add_subdirectory(bindings)
++#add_subdirectory(bindings)
+
+ if (WITH_MATLAB_BINDINGS_API)
+ set(LIBIIO_EXTRA_HEADERS ${LIBIIO_EXTRA_HEADERS} bindings/matlab/iio-wrapper.h)
diff --git a/misc/libiio/pkg-descr b/misc/libiio/pkg-descr
new file mode 100644
index 000000000000..ae4c29437361
--- /dev/null
+++ b/misc/libiio/pkg-descr
@@ -0,0 +1,12 @@
+libiio is used to interface to the Linux Industrial Input/Output (IIO)
+Subsystem. The Linux IIO subsystem is intended to provide support for devices
+that in some sense are analog to digital or digital to analog converters (ADCs,
+DACs). This includes, but is not limited to ADCs, Accelerometers, Gyros, IMUs,
+Capacitance to Digital Converters (CDCs), Pressure Sensors, Color, Light and
+Proximity Sensors, Temperature Sensors, Magnetometers, DACs, DDS (Direct Digital
+Synthesis), PLLs (Phase Locked Loops), Variable/Programmable Gain Amplifiers
+(VGA, PGA), and RF transceivers. You can use libiio natively on an embedded
+Linux target (local mode), or use libiio to communicate remotely to that same
+target from a host Linux, Windows or MAC over USB or Ethernet or Serial.
+
+WWW: https://github.com/analogdevicesinc/libiio
diff --git a/misc/libiio/pkg-plist b/misc/libiio/pkg-plist
new file mode 100644
index 000000000000..3ed6b6fe6db5
--- /dev/null
+++ b/misc/libiio/pkg-plist
@@ -0,0 +1,12 @@
+bin/iio_adi_xflow_check
+bin/iio_attr
+bin/iio_genxml
+bin/iio_info
+bin/iio_readdev
+bin/iio_reg
+bin/iio_writedev
+include/iio.h
+lib/libiio.so
+lib/libiio.so.0
+lib/libiio.so.0.17
+libdata/pkgconfig/libiio.pc