git: 347be70e149e - main - comms/libfobos: New port: RigExpert Fobos SDR API
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Nov 2024 02:39:24 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=347be70e149ece69d64772895edd6f2cab6b4e6e
commit 347be70e149ece69d64772895edd6f2cab6b4e6e
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-11-04 01:12:50 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-11-04 02:39:19 +0000
comms/libfobos: New port: RigExpert Fobos SDR API
---
comms/Makefile | 1 +
comms/libfobos/Makefile | 30 ++++++++++++++++++++++++++++++
comms/libfobos/distinfo | 3 +++
comms/libfobos/files/patch-fobos_fobos.c | 11 +++++++++++
comms/libfobos/pkg-descr | 2 ++
5 files changed, 47 insertions(+)
diff --git a/comms/Makefile b/comms/Makefile
index ad3895a04174..5ab14fb48678 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -74,6 +74,7 @@
SUBDIR += libdc
SUBDIR += libfap
SUBDIR += libfec
+ SUBDIR += libfobos
SUBDIR += libimobiledevice
SUBDIR += libimobiledevice-glue
SUBDIR += libirman
diff --git a/comms/libfobos/Makefile b/comms/libfobos/Makefile
new file mode 100644
index 000000000000..e9d08ca9240b
--- /dev/null
+++ b/comms/libfobos/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= libfobos
+DISTVERSIONPREFIX= v.
+DISTVERSION= 2.3.1
+CATEGORIES= comms hamradio
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= RigExpert Fobos SDR API
+WWW= https://github.com/AlexandreRouma/SDRPlusPlus
+
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cmake dos2unix
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= rigexpert
+
+DOS2UNIX= fobos/fobos.c
+
+LDFLAGS+= -lusb
+
+PLIST_FILES= include/fobos.h \
+ lib/libfobos.so \
+ libdata/pkgconfig/libfobos.pc
+
+post-install:
+ ${RM} -r ${STAGEDIR}/etc
+
+.include <bsd.port.mk>
diff --git a/comms/libfobos/distinfo b/comms/libfobos/distinfo
new file mode 100644
index 000000000000..6f23fa8e5358
--- /dev/null
+++ b/comms/libfobos/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1730682108
+SHA256 (rigexpert-libfobos-v.2.3.1_GH0.tar.gz) = f3ba9561de1b9ede8e1ec0726850020495eaace0bf33f22da31036287a3ce56e
+SIZE (rigexpert-libfobos-v.2.3.1_GH0.tar.gz) = 186484
diff --git a/comms/libfobos/files/patch-fobos_fobos.c b/comms/libfobos/files/patch-fobos_fobos.c
new file mode 100644
index 000000000000..e2602eb47703
--- /dev/null
+++ b/comms/libfobos/files/patch-fobos_fobos.c
@@ -0,0 +1,11 @@
+--- fobos/fobos.c.orig 2024-11-04 01:02:42 UTC
++++ fobos/fobos.c
+@@ -26,7 +26,7 @@
+ #pragma comment(lib, "libusb-1.0.lib")
+ #define printf_internal _cprintf
+ #else
+-#include <libusb-1.0/libusb.h>
++#include <libusb.h>
+ #include <unistd.h>
+ #endif
+ #ifndef printf_internal
diff --git a/comms/libfobos/pkg-descr b/comms/libfobos/pkg-descr
new file mode 100644
index 000000000000..1eb813612228
--- /dev/null
+++ b/comms/libfobos/pkg-descr
@@ -0,0 +1,2 @@
+libfobos is the Fobos SDR receiver host software API shared library.
+It is lightweight and easy to start.