git: 2e7a368c733c - main - comms/gnuradio: Missing patches

From: Diane Bruce <db_at_FreeBSD.org>
Date: Mon, 14 Apr 2025 12:34:57 UTC
The branch main has been updated by db:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2e7a368c733ca361d49a9639a032b39dc0f816ea

commit 2e7a368c733ca361d49a9639a032b39dc0f816ea
Author:     Diane Bruce <db@FreeBSD.org>
AuthorDate: 2025-04-14 12:34:06 +0000
Commit:     Diane Bruce <db@FreeBSD.org>
CommitDate: 2025-04-14 12:34:06 +0000

    comms/gnuradio: Missing patches
    
    I double checked but still missed adding these patches. *sigh*
---
 comms/gnuradio/files/grc_setup_freedesktop.in      | 23 ++++++++++++++++++++++
 .../patch-gnuradio-runtime_lib_thread_thread.cc    | 11 +++++++++++
 ..._scripts_freedesktop_grc__setup__freedesktop.in | 10 ++++++++++
 3 files changed, 44 insertions(+)

diff --git a/comms/gnuradio/files/grc_setup_freedesktop.in b/comms/gnuradio/files/grc_setup_freedesktop.in
new file mode 100644
index 000000000000..7e53fa607cf9
--- /dev/null
+++ b/comms/gnuradio/files/grc_setup_freedesktop.in
@@ -0,0 +1,23 @@
+#!/usr/bin/sh
+ICON_SIZES="16 24 32 48 64 128 256"
+if [ -n "$2" ]; then
+	SRCDIR="$2"
+else
+	SRCDIR="@CMAKE_CURRENT_SOURCE_DIR@"
+fi
+
+	echo "Begin freedesktop install..."
+	for size in ${ICON_SIZES}; do \
+		echo "Install icon: ${size}x${size}"
+		xdg-icon-resource install --noupdate --context mimetypes --theme gnome --size ${size} ${SRCDIR}/grc-icon-${size}.png application-gnuradio-grc; \
+		xdg-icon-resource install --noupdate --context mimetypes --size ${size} ${SRCDIR}/grc-icon-${size}.png application-gnuradio-grc; \
+		xdg-icon-resource install --noupdate --context apps --theme gnome --size ${size} ${SRCDIR}/grc-icon-${size}.png gnuradio-grc; \
+		xdg-icon-resource install --noupdate --context apps --size ${size} ${SRCDIR}/grc-icon-${size}.png gnuradio-grc; \
+	done
+	echo "Install mime type"
+	install ${SRCDIR}/gnuradio-grc.xml
+	echo "Install menu items"
+	install ${SRCDIR}/*.desktop
+	echo "Done!"
+	echo ""
+
diff --git a/comms/gnuradio/files/patch-gnuradio-runtime_lib_thread_thread.cc b/comms/gnuradio/files/patch-gnuradio-runtime_lib_thread_thread.cc
new file mode 100644
index 000000000000..d621eab13a76
--- /dev/null
+++ b/comms/gnuradio/files/patch-gnuradio-runtime_lib_thread_thread.cc
@@ -0,0 +1,11 @@
+--- gnuradio-runtime/lib/thread/thread.cc.orig	2025-04-10 17:29:44 UTC
++++ gnuradio-runtime/lib/thread/thread.cc
+@@ -22,7 +22,7 @@
+     defined(__NetBSD__) || defined(__OpenBSD__)
+ #define __GR_TARGET_BSD__
+ #include <pthread.h>
+-#ifdef __OpenBSD__
++#if defined(__OpenBSD__) || defined(__FreeBSD__)
+ #include <pthread_np.h>
+ #endif
+ #else
diff --git a/comms/gnuradio/files/patch-grc_scripts_freedesktop_grc__setup__freedesktop.in b/comms/gnuradio/files/patch-grc_scripts_freedesktop_grc__setup__freedesktop.in
new file mode 100644
index 000000000000..e2b2d3c50b0f
--- /dev/null
+++ b/comms/gnuradio/files/patch-grc_scripts_freedesktop_grc__setup__freedesktop.in
@@ -0,0 +1,10 @@
+--- grc/scripts/freedesktop/grc_setup_freedesktop.in.orig	2024-02-06 00:51:19 UTC
++++ grc/scripts/freedesktop/grc_setup_freedesktop.in
+@@ -25,6 +25,7 @@ case "$1" in
+ case "$1" in
+ 'install')
+ 	echo "Begin freedesktop install..."
++	exit 0
+ 	for size in ${ICON_SIZES}; do \
+ 		echo "Install icon: ${size}x${size}"
+ 		xdg-icon-resource install --noupdate --context mimetypes --theme gnome --size ${size} ${SRCDIR}/grc-icon-${size}.png application-gnuradio-grc; \